Objects and its Internal representation in JavaScript

Object Literal-Direct way


Object Instance

Object constructor

object assign

let’s look into each one of them briefly

  1. A JavaScript object Literal is a comma-separated list of name-value pairs wrapped in curly braces separating the keys and values, and a comma after every key:value pair, except for the last, just like a regular array.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jagan mohan

Jagan mohan

1 Follower

Strings,Booleans can be classified as primitive data types whereas Arrays and Objects are composite data types