(pan flute music)…- So, I think you ought to make explicit blocks,…not use implicit blocks,…that's my own personal take on that.…By the way, let declarations can obviously declare…more than one, so you could say…Y equals X times three or whatever you wanna do.…Okay.…So that's the let keyword…in addition to the var keyword.…Any more questions on let before we more on to const?…Const is a, another block scoping operator…that was added to the language.…
So in this particular case you could use…it in the place where you had a let.…It's a block scoping declarator,…so it's kinda like a cousin to let in that sense,…but what const does is something a little bit different…and it's probably something a little bit different…than what you might normally assume.…So let me just ask for a moment.…What do you all think const X equals do,…X equals two is actually creating, anyone?…- [Student] Keeps you from reassigning X…to something new.…
- Good answer.…Anybody else have a different answer?…- [Student] Talking just conceptually…or like under the covers,…
This course was created by Frontend Masters. It was originally released on 01/10/2017. We're pleased to host this training in our library.
- The arrow function
- Arrow function variations
- Closures and explicit blocks
- Default values
- Using the gather and spread operators
- Dumping variables
- Concise properties and methods
- Symbols, iterators, and generators
- Optimizing codes for the reader
Skill Level Intermediate
1. Arrow Functions
2. Block Scope
3. Default Values and the Gather/Spread Operators
5. Template Strings
6. Symbols, Iterators, and Generators
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.