Introduction to JavaScript

History of JavaScript

JavaScript is a high-level programming language that was created by Brendan Eich in 1995.

It was initially developed as a scripting language for web browsers to add interactivity and dynamic content to websites.

Mocha -> LiveScript -> JavaScript

European Computer Manufacturers Association (ECMA) for standardization.

In 1997, ECMA published the first edition of the JavaScript standard known as ECMAScript, with the specification named ECMA-262.

  • Microsoft introduced JScript as its implementation of the ECMAScript standard, which was similar to JavaScript but had some differences.

  • Various versions of ECMAScript were released, including ECMAScript 2 (1998) and ECMAScript 3 (1999), which introduced features like regular expressions and exception handling.

ECMAScript 5 (2009)

ECMAScript 5 was a significant update to JavaScript, introducing new features like strict mode, JSON support, and additional array manipulation methods.

ECMAScript 6 (2015)

Enhancements to JavaScript, including arrow functions, classes, modules, and template literals.

Today, JavaScript has become the de facto programming language for web development, powering both client-side and server-side applications. It has evolved into a versatile language with a thriving ecosystem, enabling developers to create dynamic, interactive, and feature-rich web experiences.

Note : Node JS is a runtime operator for JavaScript.

Without Node JS you are not able to run our code in code editor make sure you installed Node JS in our window pc.

Basic of programming language

  1. Values

  2. Operators

  3. Variables

  4. Conditions

  5. Loop

  6. Functions

Values

There are manly two type of values Primitive and Non-Primitive.

Primitive Data type

  1. Number Value

    1 , 6.5

    both integer and float are consider as a number value

  2. String Value

    "ranjeet" , 'ranjeet'

    both of them are consider as a string value

  3. Boolean Value

    true

    false

  4. Empty Values

    null

    undefined

Non-Primitive Data Type

which store multiple values

  1. Array

    [ 1, 'ranjeet' , true, 2.5, false]

    In other languages like CPP they store same data type but in JavaScript

    we can store multiple datatype value in same array.

  2. Object

    {

    key: value,

    }

Variables

Mainly we use var , const ,let.

Place holder for values

var don't use

let x=1;

like a balance in bank account can be change

const y=123322332;

like a Account Number it will same through out the code