Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 327 Bytes

File metadata and controls

14 lines (9 loc) · 327 Bytes

JavaScript - Objects

Object is a collection of named values.

Objects will have properties and methods.

Except primitive values, almost everything in JavaScript is objects.

We can also make primitive values as object using new keyword.

  • Create an Object:
    const nameOfObject = {key: value}