To a functional programmer, immutability refers to a variable's ability to be changed. Kyle illustrates this by explaining the difference between using the const keyword and using Object.freeze().
If I'm in strict mode, it'll throw an error.…If I'm in non-strict mode, it'll just…simply ignore the operation and not allow it to occur.…So, a lot people say, well const…gives us immutable values,…and that's completely and utterly false.…The const keyword is not about…giving you immutable values.…It is about giving you an immutable assignment…or to be a little bit more programmer…
This course was created by Frontend Masters. It was originally released on 03/08/2016. We're pleased to host this training in our library.
- Pure functions
- Manual composition
- Composition utility
- List operations
Skill Level Intermediate
1. Pure Functions
2. Composition and Immutability
3. Closure and Recursion
4. List Operations
- 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.