[Solved]Q6 Create Javascript Function Called Turns Background Colour Text Q37019375
Hello,
Please assist me with this question in html and javascriptlanguage. Thank you.

Q6. (a) Create a JavaScript function which, when called, turns the background colour of all text in <br and <div> elements of the HTML page into blue. However, you cannot use getElementByTagName here (or any other built-in function which finds elements by their names… Instead, you need to traverse (walk through) the DOM tree element by element. Remember that elements might be nested within other elements. [9 marks] (b) Explain in detail what “prototypes” are and how they can be used to make object inheritance possible in JavaScript. Provide a code example of your own choice to illustrate your explanation. [8 marks] (c) JavaScript supports multi-dimensional arrays. Provide a code example which illustrates how 2-dimensional arrays can be created, filled with several items and then displayed on the web page in tabular form. The items in the nested arrays should be numbers. [8 marks] Show transcribed image text Q6. (a) Create a JavaScript function which, when called, turns the background colour of all text in
Expert Answer
Answer to Q6. (a) Create a JavaScript function which, when called, turns the background colour of all text in … . . .
OR

