Created
July 31, 2020 18:03
-
-
Save slim-python/70746a22def9bcdd35810963f52fac18 to your computer and use it in GitHub Desktop.
Difference between var, let and const keyword in Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var income = 550; | |
console.log(income); | |
//output : 550 | |
var income = 560; | |
console.log(income); | |
//output : 560 | |
var income = income + 1; | |
console.log(income); | |
//output : 561 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment