Difference between var and let in javascript ?

Difference between var and let in javascript ?

In this article, We’ll see what is the difference between var and let in javascript ? Below an example will clarify the difference. The var statement declares a variable, optionally initializing it to a value Demo: Statement – Var The let statement declares a block scope local variable, optionally initializing it to a value. Demo:Read more about Difference between var and let in javascript ?[…]

Javascript – What is the difference between undefined and null ?

Javascript – What is the difference between undefined and null ?

In this article, we’ll see what is the difference between undefined and null in javascript. undefined: means a variable has been declared but has not yet been assigned a value. Below an example: null: means an empty or non-existent value. It can be assigned to a variable as a representation of no value. Below anRead more about Javascript – What is the difference between undefined and null ?[…]