Objects in JavaScript [43 of 51] | JavaScript for Beginners

preview_player
Показать описание
JavaScript allows you to do more with objects than simply create data structures. You can create fully functional objects with methods and state. This allows you to better represent information and operations in your code. We'll see how you can use objects in JavaScript.

#JavaScript #Beginners #Tutorial #NodeJS
Рекомендации по теме
Комментарии
Автор

You can use:
const book = { title: '1984', author: 'George Orwell' }
instead of:
const book = new Object({ title: '1984', author: 'George Orwell' });
It's exactly the same.

sharakpl