M
Q. Consider the following code snippet : var book = { "main title": "JavaScript", 'sub-title': "The Definitive Guide", "for": "all audiences", author: { firstname: "David", surname: "Flanagan" } }; In the above snippet, firstname and surname are
firstname and surname are the property names. The value of that particular property is itself an object. That is why these property names are unquoted.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. How to write an IF condition to check if “a” is NOT equal to 2?
Q. How do you specifically execute a command in JavaScript?
Q. What is the purpose of XMLHttpRequest?
Q. Which one of the following symbol is used for creating comments in the javascript
Q. Consider the following code snippet. What will the above code snippet result ?
Q. Which JavaScript method is used to access an HTML element by id?
Q. Which event handler is triggered when the user’s mouse moves away from a link?
Q. What is the solution to the absence of a script tag without an src attribute?
Discusssion
Login to discuss.