Node.js Basics



Node.js Basics:

Node.js uses JavaScript for programming. Thus, most of its syntax and basic features are more so similar as JavaScript.

Node.js Data Types:

Node.js is a loosely typed language, which means that it automatically corrects the data type of the variable, depending on its value. There are mainly two types of data types used in Node.js:

  1. Primitive Data Types:

 String:

A sequence of characters is termed as string.

 Number:

All the numeric values are included in this data type.

 Boolean:

It can take only two values, either 0 or 1, i.e, either TRUE or FALSE.

  • Undefined:

The undefined values are grouped under this data type.

 Null:

NO value or NULL is represented by this data type.

 Non – Primitive Data Types:

 RegExp:

RegExp is a non-primitive type of data that is used to represent regular expression.

 Object:

An Object is an entity that represents an instance to access its members.

  • Buffer:

Additional data type in Node.js which is used to store binary data.

Global Objects:

Node.js global objects can be used directly without including them. Some of the Node.js global objects are listed below:

  • __dirname
  • __filename
  • Console
  • Process
  • Buffer
  • setImmediate()
  • setInterval()
  • setTimeout()
  • clearImmediate()
  • clearInterval()
  • clearTimeout()

 

 

Tags: ,
Leave a comment

Your email address will not be published. Required fields are marked *

Subscribe now

Receive weekly newsletter with educational materials, new courses, most popular posts, popular books and much more!

https://bridgejunks.com/ https://crownmakesense.com/ https://brithaniabookjudges.com/ https://hughesroyality.com/ https://rhythmholic.com/ https://bandar89.simnasfikpunhas.com/ https://www.100calshop.co.il/products/thailand/ https://myasociados.com/ https://solyser.com/ http://konfidence.cz/ https://muscadinepdx.com/ https://bandar89.parajesandinos.com.ve/ https://goremekoop.com/ https://oncoswisscenter.com/ https://www.turunclifehotel.com/bandar89/ https://www.houseofproducts.biz/ https://taimoormphotography.com/
BIJI18 BIJI18 BIJI18