objects are one of the JavaScript’s data types. It can be seen as a collection of properties. objects can be created using object() construct or Object.create().


What is an Array?

An array is a list like object in which we can store elements of any type. The length of array is not fixed. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.We can perform various mutation and traversal operations on an array. To traverse we use integers as index and only integers can be used not strings.

Creating an array


Variables are named containers that store data of all forms in any programming language.A piece of information that we might reference multiple times can be stored in a variable for later use or modification. In javaScript the value stored in these containers can be of any datatype (string, integer or object). To use a variable there are two major parts first is declaring a variable and the other one is defining the variable.

Naming a variable:

Rahul Dutt Pandey

I'm an Engineer who loves to play with code and give shape to my ideas.

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