What is JavaScript?

JavaScript is a high-level and widely used programming language. It is used in web browsers and server side with technologies like Nodejs & Deno.

Guide

Variable declaration

var a = 10;
let b = "Hello!";
const c = true;

Function declaration

export function myFunctionA ( ) {
  // required code snippet
}

Arrow function declaration

export const myFunctionB = ( ) => {
  // required code snippet
};

Map declaration

export const users = Map([
  [1, "Abhisek"],
  [2, "Sahanur"],
  [3, "Sharmee"],
  [4, "Pritam"],
]);

Set declaration

export const uniqueItems = Set([1, 3, 9, 1, 7]);