Created
October 1, 2019 17:12
-
-
Save dannydi12/fa54daf83df75e16d7a0b87c72408539 to your computer and use it in GitHub Desktop.
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
1) let mentor = "Felix"; | |
2) console.log(mentor); | |
3) let and const are the newer ways to set a variable in ES6 while var is a pre-ES6 to declare variables. The scopes also differ, apparently. let operates similarly to var but const makes constants which cannot be reassigned a new value. | |
4) const name = Daniel Di Venere"; var state = "California"; let hair = "brown"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment