Question: Code a function called objectToHTML that returns a nicely formatted String suitable for rendering as HTML listing all of the properties and property values of

Code a function called objectToHTML that returns a nicely formatted String suitable for rendering as HTML listing all of the properties and property values of an object supplied as a parameter to the function. Code a test object with several properties to test your function. Display the results of your testing. For example, running your code on the following object var testObj = {number: 1, string: "abc", array: [5, 4, 3, 2, 1], boolean: true}; might return output like
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
