File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,4 +34,16 @@ const user = {
3434// }
3535
3636// console.log(user.greetings());
37- // console.log(user.greetingsTwo());
37+ // console.log(user.greetingsTwo());
38+
39+ //Object de-structure and JSON API intro
40+
41+ const course = {
42+ coursename : "js in hindi" ,
43+ price : "999" ,
44+ courseInstructor : "krish"
45+ }
46+ //this is object de-structure
47+ const { courseInstructor :instructor } = course ;
48+ // console.log(courseInstructor);
49+ console . log ( instructor ) ;
Original file line number Diff line number Diff line change 1+ //Object de-structure and JSON API intro
2+
3+ const course = {
4+ coursename : "js in hindi" ,
5+ price : "999" ,
6+ courseInstructor : "krish"
7+ }
8+ //this is object de-structure
9+ const { courseInstructor :instructor } = course ;
10+ // console.log(courseInstructor);
11+ console . log ( instructor ) ;
You can’t perform that action at this time.
0 commit comments