Open in app
Home
Notifications
Lists
Stories

Write
Shubham Mishra
Shubham Mishra

Home

Nov 18, 2018

Node.JS: module.exports and exports.

This article will explain module.exports and exports and their different use cases. Firstly ‘module.exports’ is a object which is returned whenever you require() any module and ‘exports’ is a variable referring ‘module.exports’ think of it as var exports = module.exports; Initially ‘module.exports’ is an empty object, and it allow us…

Java Script

3 min read

Node.JS: module.exports and exports.
Node.JS: module.exports and exports.

Oct 25, 2018

JavaScript: Different ways to create an object from another object.

In this article we will learn different ways of creating an object from another object, and difference between them. Let’s create an object using object literal as: let a = { id: 23, name: 'Sam' }; Now we will see different ways of creating object from this object: 1) Using Object.create(obj): This way…

Java Script

3 min read

JavaScript: Different ways to create an object from another object.
JavaScript: Different ways to create an object from another object.
Shubham Mishra

Shubham Mishra

A passionate programmer and a web application developer.

Following
  • Node.js

    Node.js

  • Alain Chautard

    Alain Chautard

  • Paige Niedringhaus

    Paige Niedringhaus

  • Kieran Maher

    Kieran Maher

  • Max Koretskyi

    Max Koretskyi

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable