JavaScript entries, keys, values

2019. 9. 6. 10:15JavaScript

728x90
const duck = {
  name: 'duckie kim',
  sound: 'quack quack',
  age: 12
};
  1. console.log(Object.entries(duck));

 

 

  1. console.log(Object.keys(duck));

 

 

  1. console.log(Object.values(duck));

728x90
반응형