You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Felix Mokross edited this page Jan 9, 2024
·
2 revisions
Why recap of these JavaScript features?
There exist some features in JavaScript, which we will use a lot when writing and reading React code, and it is possible that these features are fully known to you. So here is a quick recap so we're sure that everyone can understand the code discussed in this course.
Object Destructuring
Destructure a javascript object into objects/primitives representing the fields of the object
constjoe={name: 'Joe',age: 20,home: 'Schlieren',size: 170};console.log(joe.name,joe.age);const{ name, age }=joe;console.log(name,age);// "Joe", 20