Diffrence Between Var Let Const.

In this article, we'll discuss var, let and const with respect to their scope, use, and hoisting. As you read, take note of the differences between them that I'll point out.

"var" means variable. it is a global scope variable. it is ruled before "ES-6" has comes into the picture. Var can be redecleared, reassaign and so on. And this is most common lackings of var.

"let" has much more flexiblities compared to var. it allow us to declare variabe that can be reassaign the declred variabe but redefine with same name is not possible with "let"

"const" is constant once declared with const can not be redeclared, re-assaign or any kind of modification is not allowed.

Diffrence Between Arrow And Regular Function.

Both works are very similar. But there is some difference in syntax declaration and argument passing.

Diffrence Between map forEach filter find.

Map And forEach: Both are new methood are new in Es-6. Both are used for running loops on array element based on some conditions and retun updated array without changing original one.

Filter: It run some filter operation based on some condition. Then return an array of element that has fullfilled given condition.

Uses of template String

Template Strings are used to set element dynamically from js file. It help us with the abilities to update Dom element dynamically with the data we got as a response from web servers.