Skip to content

Commit 2f8ee94

Browse files
committed
Modified 05 object_json.js
Modified definations of De-structuring objects, JSON & API after understanding these.
1 parent b83608b commit 2f8ee94

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

02_Basics/05_object_json.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ const course = {
1313
const {courseInstructor: instructor} = course
1414
console.log(instructor); // Output: Ayush
1515

16-
/*--------------------------------------------------------------------------------
16+
/*----------------------------------------------------------------------------------------------
17+
An API is like a menu at a restaurant. It tells you what you can order and how to ask for it.
18+
It lets different software talk to each other and share information.
19+
1720
JSON (Javascript Object Notation),
18-
API can provide data in a structured format such as JSON,
19-
JSON's structure is easy for humans to read and understand,
21+
JSON is a way to organize data in a simple format that both humans and computers can understand.
22+
It's like putting information in a neat box for easy shipping.
2023
2124
{
2225
"name": "Ayush",

0 commit comments

Comments
 (0)