DEV Community

Discussion on: Enough JavaScript to get you Started : #16 var vs let vs const

Collapse
 
theshakeabhi profile image
ABHISHEK CHANDRASENAN

Hey,
In the Var section of "Example of Re-declaration",
Did you mean:

var a = 10;
var a = 20;
Enter fullscreen mode Exit fullscreen mode

?
Or did you mean what you wrote:

var a = 10;
var b = 20;
Enter fullscreen mode Exit fullscreen mode

?

Do feel to correct me if I am wrong.

Collapse
 
whoadarshpandya profile image
Adarsh Pandya

Hey you're right, it was typo - fixed it

Thanks

Collapse
 
theshakeabhi profile image
ABHISHEK CHANDRASENAN

Glad I could help.