What are three JSON data types used in JavaScript?
Choose an answer
Tap an option to check your answer.
Correct answer: SCALAR, OBJECT, and ARRAY.
Why this is the answer
In JSON, data is structured using three fundamental types: SCALAR, OBJECT, and ARRAY. A SCALAR represents a single value, such as a string, number, boolean, or null. An OBJECT is an unordered collection of key-value pairs, where keys are strings and values can be any JSON data type. An ARRAY is an ordered list of values, where each value can also be any JSON data type. The options GET, PUT, and DELETE, or GET, PUT, and POST, refer to HTTP methods used in RESTful APIs for interacting with resources, not JSON data types. SCALAR, POST, and OBJECT is incorrect because POST is an HTTP method, not a JSON data type.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed