-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjson.js
More file actions
28 lines (26 loc) · 667 Bytes
/
json.js
File metadata and controls
28 lines (26 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// TASK:
// 1. Describe what JSON format is.
// 2. Delete the data types not permitted in JSON.
// 3. Replace placeholder-text with the corresponding data type,
// properly formatted as JSON.
const myJsonObj = {
myString: [some string],
myNumber: [some number],
myNull: [null],
myBoolean: [false],
// myUndefined: [undefined],
myArray: [some array],
myFunction: [some function],
myObject: [some object]
};
const myJsonObj = {
"myString": "hello world",
"myNumber": 12345.6789,
"myNull": null,
"myBoolean": true,
"myArray": [20, 30, "orange"],
"myObject": {
"name": "Sam",
"age": 30
}
};