How many data types are there in JavaScript?
Eight
Seven of these data types are called primitive.
What are primitive data types in JavaScript?
Primitive data types contain only a single value.
What are objects used for in JavaScript?
To store keyed collections of various data and more complex entities
Objects penetrate almost every aspect of the JavaScript language.
How can an object be created in JavaScript?
let user = new Object();The curly braces are commonly used for object literals.
What is a property in the context of a JavaScript object?
A ‘key: value’ pair
The key is a string (property name), and the value can be anything.
What does an empty object represent in JavaScript?
An ‘empty cabinet’
It can be created using either object constructor or object literal syntax.
Fill in the blank: An object can be created using ________ syntax.
object literal
This is commonly done using curly braces.
True or false: A property in a JavaScript object has a key and a value.
TRUE
The key is also known as the name or identifier.