The process to create the key value pair using object notation is as follows:
Example:
{
"name": "John",
"age": 30,
"isStudent": true,
"hobbies": ["reading", "writing", "playing guitar"]
}
In the above example, "name", "age", "isStudent" and "hobbies" are the keys and "John", 30, true and ["reading", "writing", "playing guitar"] are the corresponding values.
Asked: 2023-05-11 04:23:01 +0000
Seen: 20 times
Last updated: May 11 '23