Skip to content

Instantly share code, notes, and snippets.

@dannydi12
Created October 1, 2019 17:12
Show Gist options
  • Save dannydi12/fa54daf83df75e16d7a0b87c72408539 to your computer and use it in GitHub Desktop.
Save dannydi12/fa54daf83df75e16d7a0b87c72408539 to your computer and use it in GitHub Desktop.
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