///////////////****** OBJECTS IN JS (PART 3) ********////////////////////
/// de structuring data
const course ={
coursename:"udemy js ",
price: "999",
courseIntructor: "hitesh"
}
const {courseIntructor: Inst} = course // getting value of courseInstructor from course and refreing it from Inst key
console.log(Inst); // hitesh
///////////////////////////**** JSON API *******////////////////
/// this is Json
/*{
"name": "om",
"coursename": "js",
"price": "free"
}*/
// this Json array
[
{},
{},
{}
]
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter