Prevent Object Mutation, ES6 freeCodeCamp Introduction, Learn Javascript in 2020, ES6 Syntax

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=gDmCUKVDvCk



Duration: 2:34
257 views
5


In this lesson, we further embark on our ES6 journey. In previous lessons we learn that an object may still be changed by targetting specific parts of that object. If we wanted to make sure to keep an object constant, we can freeze our object, or lock it in place, by utilizing the Object.freeze function. This Obj freeze function allows us to keep an object constant that we do not allow to be changed or mutated. By using Object.freeze we can make sure our constant does not change later on in our code.




Other Videos By We Will Code


2019-11-24Use Destructuring Assignment with the Rest Parameter to Reassign Array Elements, Learn JS 2020
2019-11-23Use Destructuring Assignment to Assign Variables from Arrays, Learning JS ES6 2020, Web Dev
2019-11-22Use Destructuring Assignment to Assign Variables from Nested Objects, Learning the ES6 Syntax
2019-11-21Use Destructuring Assignment to Assign Variables from Objects, An ES6 Course Introduction
2019-11-20Use Destructuring Assignment to Extract Values from Objects, freeCodeCamp tutorials for ES6
2019-11-19Use the Spread Operator to Evaluate Arrays In-Place, An ES6 Teaching
2019-11-18Use the Rest Parameter with Function Parameters, freeCodeCamp Course on ES6 Syntax, Learn JS 2020
2019-11-17Set Default Parameters for Your Functions, ES6 Courses on
2019-11-16Write Arrow Functions with Parameters, freeCodeCamp's ES6 Course, ES6 Challenges FreeCodeCamp
2019-11-15Use Arrow Functions to Write Concise Anonymous Functions, freeCodeCamp's ES6 Challenges, Javascript
2019-11-14Prevent Object Mutation, ES6 freeCodeCamp Introduction, Learn Javascript in 2020, ES6 Syntax
2019-11-13Mutate an Array Declared with const, 2020 ES6 Tutorials, freeCodeCamp ES6 Challenges 2020
2019-11-12Declare a Read-Only Variable with the const Keyword, A freeCodeCamp ES6 Syntax Introduction
2019-11-11Compare Scopes of the var and let Keywords, ES6 Intro FreeCodeCamp, Learn ES6 on FreeCodeCamp
2019-11-10Explore Differences Between the var and let Keywords, Learn ES6, Intro to ES6, free Coding Tutorials
2019-11-10Introduction to the ES6 Challenges, freeCodeCamp Intro to ES6 Challenges on FreeCodeCamp
2019-08-28freeCodeCamp's Use tabindex to Specify the Order of Keyboard Focus for Several Elements
2019-08-24freeCodeCamp's Use tabindex to Add Keyboard Focus to an Element, Accessible Web Apps 2020
2019-08-14freeCodeCamp's Make Links Navigatable with HTML Access Keys, Learn Web Accessibility
2019-08-12freeCodeCamp, Give Links Meaning by Using Descriptive Link Text, Learn to Code 2020
2019-08-10freeCodeCamp, Avoid Colorblindness Issues by Carefully Choosing Colors that Convey Information



Tags:
object mutation
es6 objects
es6 object mutation
es6 intro
object syntax es6