Exploring Difference Between the var & let Keywords, Learn ES6, Intro to ES6, free Coding Tutorials

44 views /


In today's ES6 javascript lesson we begin our journey into the ES6 syntax by taking a look at how we are able to declare variables. In the past, javascript has allowed us to declare variables using the "'var" keyword. This is not the greatest way to declare a variable because we do not always want to declare the same type of variable, and we may want to declare a variable that never changes. There are many reasons for not wanting to use one keyword when declaring variables. ES6 has allowed us to declare a variable & use that variable within the scope of reference using the "let keyword"'.


0 commentaries