json object array 1

json object array

const Object = {a:1,
                 b:'ab'
                };


const Array = [1,
                 'ab',
                 4
                ];

Here is what the above code is Doing:
1. We are creating a variable called Object and assigning it a value of an object.
2. We are creating a variable called Array and assigning it a value of an array.
3. We are creating a variable called String and assigning it a value of a string.
4. We are creating a variable called Number and assigning it a value of a number.
5. We are creating a variable called Boolean and assigning it a value of a boolean.

Similar Posts