Programming for the web
166 questions. Open a question to solve it and check the official answer.
Programming for the web · 16 marks
6 (a) Amelia wants a webpage that customers can use to make an enquiry about a booking. The webpage must meet the following requirements: • A check that the forename field is comp…
Programming for the web · 4 marks · official answer ready
(a) Two methods of storing the names are shown below. Method 1: var city1 = "London"; var city2 = "Cambridge"; var city3 = "Oxford"; var city4 = "Manchester"; Method 2: var city =…
Programming for the web · 2 marks · official answer ready
(b) Jonas has added some lines to the JavaScript code: /* The code below stores the list of cities. */ var city = ["London", "Cambridge", "Oxford", "Manchester"]; Explain why Jona…
Programming for the web · 3 marks · official answer ready
(c) Jonas wants to extract ‘Oxford’ from the list in the code below to display it on the web page. var city = ["London", "Cambridge", "Oxford", "Manchester"]; Write a line of Java…
Programming for the web · 4 marks · official answer ready
(d) Write a loop in JavaScript code to extract and display the first three city names. ............................................................................................…
Programming for the web · 10 marks
1 person or 2 people Save the form as NewBookingForm.html [10] 6 7
