About Lesson
In this JavaScript lesson we are going to learn about JavaScript Object.Values(), so It is used for getting object property values, and it is a feature in JavaScript ES8.
Now let’s create an example, in this example we have a simple object, and after that we have used object.values() to get the object property values.
1 2 3 4 5 6 7 8 |
const info= { name:"Parwiz", lname:"Forogh", email:"par@gmail.com" } console.log(Object.values(info)); |