Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Object.values() Method to Loop Through an Object in JavaScript

const person = {
    first_name: 'Monica',
    last_name: 'Geller',
    phone: '915-996-9739',
    email: 'monica37@gmail.com',
    street: '495 Grove Street',
    city: 'New York',
    country: 'USA',
};

const values = Object.values(person);

console.log(values);
Source by www.webmound.com #
 
PREVIOUS NEXT
Tagged: #Method #Loop #Through #Object #JavaScript
ADD COMMENT
Topic
Name
3+7 =