Question 10 2021 · May-June · Paper 31 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 10
Question 6
Show text version of question
Question 10
Jasmine is using JavaScript on her web pages to provide interactivity. She has encountered some runtime errors during the testing of her JavaScript code.
She has written some code including window.onerror = function (msg, url, line)
The onerror() event handler will trap errors.
Describe how this can help Jasmine locate the mistakes in the rest of her code.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
....................................................................................................................................................
Question 12
Why this question appears here
98% assigned-topic match · Programming for the web
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9626_s21_qp_31.pdf
