Past-paper question · 2021 October-November · Paper 32 · Q3(a)

Question 3(a) 2021 · October-November · Paper 32 · 2 marks

Original past-paper question for 3(A)
Original past-paper question for 3(A)
Reveal official mark-scheme answer Official mark-scheme answer for 3(A)

Official answer for Question 3

Part (a)

✓
Two from:

Question 2

✓
Creates cleaner/neater code
✓
Provides a single place to look for local variables
✓
Makes it easier to avoid unwanted (implied) global variables
✓
Reduces the possibility of unwanted re-declarations of variables.

Mark scheme 9626_w21_ms_32.pdf →

Show text version of question

Question 3

Part (a)

Question 3

JavaScript is a programming language used within HTML on web pages.

Explain why it is considered good practice when coding in JavaScript to:

Part (a)

place all declarations at the start of each script or function

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

[2]
Topic relevance

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_w21_qp_32.pdf

Keep practising this topic