JavaScript शिकूया मराठी मध्ये...

credit: pintrest

Declaration: var is used to declare variables in JavaScript

Books

var keyword बद्दल बघूया

credit: pintrest

Function Scope: Variables declared with var are scoped to the function they're declared in

credit: pintrest

Hoisting: var variables are hoisted to the top of their scope.

Re-declaration: var allows re-declaration within the same scope.

credit: pintrest

Global Scope: Variables declared with var outside functions are global.

credit: pintrest

No Block Scope: var doesn't have block-level scope like let and const.

credit: pintrest