[Solved]Q4 Javascript Func Tions Called First Class Citizens Language N Also Describe Situations F Q37067038
Hello.
Please assist with this question in html and javascript.

Q4. (a) In JavaScript, func tions are so-called “first-class citizens” of the language. What does n? Also, describe in which situations this feature is particularly useful, and that mea explain why it is useful. Support your explanations with code examples of your own choice. [10 marks] (b) Suppose you would like to create part of a JavaScript program for personnel management. Create a constructor Person for person objects with the following properties: name of the person, postal address, date of birth and email address. Use appropriate data types for these properties. Each value of the “name” property should be an object itself which consists of a property for the first name and another property for the surname. Also, provide code which creates two example person objects using the Person constructor. [8 marks] (c) What is the “BOM” in the context of JavaScript? In addition to your explanation, provide a short code example of your own choice in order to demonstrate how the BOM can be used. [7 marks] Show transcribed image text Q4. (a) In JavaScript, func tions are so-called “first-class citizens” of the language. What does n? Also, describe in which situations this feature is particularly useful, and that mea explain why it is useful. Support your explanations with code examples of your own choice. [10 marks] (b) Suppose you would like to create part of a JavaScript program for personnel management. Create a constructor Person for person objects with the following properties: name of the person, postal address, date of birth and email address. Use appropriate data types for these properties. Each value of the “name” property should be an object itself which consists of a property for the first name and another property for the surname. Also, provide code which creates two example person objects using the Person constructor. [8 marks] (c) What is the “BOM” in the context of JavaScript? In addition to your explanation, provide a short code example of your own choice in order to demonstrate how the BOM can be used. [7 marks]
Expert Answer
Answer to Q4. (a) In JavaScript, func tions are so-called “first-class citizens” of the language. What does n? Also, describe in w… . . .
OR

