JohnCoene / javascript-for-r-comments

1 stars 0 forks source link

Not use var anymore? #3

Open MayaGans opened 4 years ago

MayaGans commented 4 years ago

keywords, var, let, or const which mainly affect the scope where the declared variable will be accessible from.

I thought we're not supposed to use var anymore?

JohnCoene commented 4 years ago

Oh lord, is it because of the scope it's declared in?

MayaGans commented 4 years ago

https://wesbos.com/is-var-dead ? I don't know, I think there's just a loud opinionated few who are against using it.... 🤷 I don't think it's a real issue to use it in the book