Basics you need to know for starting the objects in javascript.

·

2 min read

Introduction: Javascript has been very versatile to use of full-stack implementation and growing community over stacks such as (MERN, MEAN, MEVN), so you need to be clear with the concepts as objects, JSON, classes, at least es6 version javascript to excel in those type of frameworks, for now, we will focus on objects.

implementation of the object in javascript this is a short guide for the implementation of the javascript object.

The below version is just a sample code:

let obj={icecream:"butterscotch", taste:"sweet", celebration:function(){ return `this ${this.icecream} tastes ${this.taste}`; } } //we can access the javascript properties by using console.log(obj.taste); //sweet console.log(obj.celebration()); //this butterscotch tastes sweet from the above sample code javascript objects properties are expressed in key: value pairs, the celebration is a method, which is a function where it helps to create action with the help of values. Note: Here this refers to obj. that's it for the basics of objects in javascript. Thank you!

stay tuned for upcoming blogs on topics such as: 1)deep knowledge of objects. 2)ES6 classes. 3)asynchronous javascript. 4)this keyword in javascript.