1.

The property of JSON() method is __________(a) it can be invoked manually as object.JSON()(b) it will be automatically invoked by the compiler(c) it is invoked automatically by the JSON.stringify() method(d) it cannot be invoked in any formI got this question at a job interview.Enquiry is from Classes in JavaScript in chapter Classes and Modules in JavaScript of JavaScript

Answer»

The correct choice is (c) it is INVOKED automatically by the JSON.stringify() method

Explanation: A common use of JSON is to exchange DATA to/from a web server. When sending data to a web server, the data has to be a STRING. In that CASE json.strigify() is used to CONVERT a javascript object into a string.



Discussion

No Comment Found

Related InterviewSolutions