Declare a Read-Only Variable with the const Keyword, A freeCodeCamp ES6 Syntax Introduction VIDEO
In this lesson in our ES6 introduction, we look at a new keyword. The "const' keyword is used when we want to declare a variable that will stay constant throughout our code. We learn that when using the "const" keyword for variable declaration, it is convention to give our variable name, all caps. This helps us distinguish which variables are meant to be constants while variables declared with the "let"' keyword is declared using camelCasing.
Other Videos By We Will Code 2019-11-22 Use Destructuring Assignment to Assign Variables from Nested Objects, Learning the ES6 Syntax 2019-11-21 Use Destructuring Assignment to Assign Variables from Objects, An ES6 Course Introduction 2019-11-20 Use Destructuring Assignment to Extract Values from Objects, freeCodeCamp tutorials for ES6 2019-11-19 Use the Spread Operator to Evaluate Arrays In-Place, An ES6 Teaching 2019-11-18 Use the Rest Parameter with Function Parameters, freeCodeCamp Course on ES6 Syntax, Learn JS 2020 2019-11-17 Set Default Parameters for Your Functions, ES6 Courses on 2019-11-16 Write Arrow Functions with Parameters, freeCodeCamp's ES6 Course, ES6 Challenges FreeCodeCamp 2019-11-15 Use Arrow Functions to Write Concise Anonymous Functions, freeCodeCamp's ES6 Challenges, Javascript 2019-11-14 Prevent Object Mutation, ES6 freeCodeCamp Introduction, Learn Javascript in 2020, ES6 Syntax 2019-11-13 Mutate an Array Declared with const, 2020 ES6 Tutorials, freeCodeCamp ES6 Challenges 2020 2019-11-12 Declare a Read-Only Variable with the const Keyword, A freeCodeCamp ES6 Syntax Introduction 2019-11-11 Compare Scopes of the var and let Keywords, ES6 Intro FreeCodeCamp, Learn ES6 on FreeCodeCamp 2019-11-10 Explore Differences Between the var and let Keywords, Learn ES6, Intro to ES6, free Coding Tutorials 2019-11-10 Introduction to the ES6 Challenges, freeCodeCamp Intro to ES6 Challenges on FreeCodeCamp 2019-08-28 freeCodeCamp's Use tabindex to Specify the Order of Keyboard Focus for Several Elements 2019-08-24 freeCodeCamp's Use tabindex to Add Keyboard Focus to an Element, Accessible Web Apps 2020 2019-08-14 freeCodeCamp's Make Links Navigatable with HTML Access Keys, Learn Web Accessibility 2019-08-12 freeCodeCamp, Give Links Meaning by Using Descriptive Link Text, Learn to Code 2020 2019-08-10 freeCodeCamp, Avoid Colorblindness Issues by Carefully Choosing Colors that Convey Information 2019-08-08 freeCodeCamp's, Avoid Colorblindness Issues by Using Sufficient Contrast, Accessible Websites 2019-08-07 freeCodeCamp, Improve Readability with High Contrast Text, Applied Accessibility Website
Tags: learning javascript es6
learning es6 syntax
const vs let
const and let keywords
const keyword