DEV Community

Kavin Loyola S
Kavin Loyola S

Posted on • Edited on

JavaScript

JavaScript

It is developed in 1995 and with the name of Mocha. it is the time where java is evolving and for marketing purpose they changed their name into JavaScript and it is created within 10 hours of a time.

Diff between Interpreter And Compiler ?

Interpreter

It Executes line by line code until error occurs.

Compiler

It Executes only the full code has no error.

Environment

Node.js - A free Open-source runtime environment that enables developers to create servers, webapps, command line tools and scripts.

Data types

it consists of two types. like,

  1. Primitive :
  • String

  • Number

  • Boolean

  1. Non - Primitive :
  • Object

String

it consists of words and sentences.

Number

it consists of numbers / integers.

BigInt

it consists of Big numbers and big integers like more than 4 - bits.

Boolean

it consists of statements like true or false / yes or no.

Binary

it refers to a number system that uses only two symbols, typically 0 and 1, to represent values. and its only the machine understanding language.

Bit

it helps to convert the human language to machine level language.

1 Byte = 8 Bit.

JavaScript is a Dynamic type language.

Difference Between Static and Dynamic ?

Static - in that we have to mention their data types.

Dynamic - in that we don't have to mention data types.

Top comments (0)