Posted On: Feb 22, 2018
Example of var:
Input: console.log(x); var x=5; console.log(x); Output: undefined 5
Example of let:
Input: console.log(x); let x=5; console.l og(x); Output: Error
Never Miss an Articles from us.