Object in Node.js #

JavaScript isn’t object oriented programming language, it functional programming (scripting) language.

JavaScript developer only deals with object and once you understand the object in javascript then you understood the core concept of js. Probably now you can do almost everything.

Declaring object #

let ob = {};

Declaring object with some value #

let ob = {
  name: "John",
  age: 30,
  demo: function () {
    console.log("This is function");
comments powered by Disqus