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

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

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

Official answer for Question 3

Part (b)

✓
Two from:

Question 2

✓
Avoids undefined values
✓
Creates concise code that is easier to follow/program
✓
Provides a single place to initialise variables.

Mark scheme 9626_w21_ms_32.pdf →

Show text version of question

Question 3

Part (b)

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 (b)

initialise variables when first declared

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

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

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

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

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

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

[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