+ 3

Js keywords?

What is the diffrence between the "var" and "let" keywords because it seems that they do the same thing.

11th May 2018, 1:48 PM
Youness Oubelkacem
Youness Oubelkacem - avatar
3 Antworten
+ 8
https://www.sololearn.com/learn/JavaScript/1128/?ref=app " let allows you to declare variables that are limited in scope to the block, statement, or expression on which it is used. This is unlike the var keyword, which defines a variable globally, or locally to an entire function regardless of block scope." Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let (syntax and examples included in above link)
11th May 2018, 1:54 PM
Rahul George
Rahul George - avatar
+ 4
may this will help you https://youtu.be/RZwUrFRalgs
11th May 2018, 1:51 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 4
We have ES6 course right here in Sololearn https://www.sololearn.com/learn/406/?ref=app
12th May 2018, 8:32 AM
Mike Choy
Mike Choy - avatar