Software developer and content creator. Author of the upcoming book, A Modern JavaScript Primer. Preorder a copy here https://naftalimurgor.gumroad.com/l/modern-javascript-primer
Note: thevar keyword is deprecated as of ES6(ES2015). It's quite rare to see usage of var in mordern code bases due to the behavior that var introduces. Usage of var to declare and initialize variables still works because of back-ward compatibility of JavaScript. However, when working on pre-ES2015 code, trying to migrate to let and const will be too much effort for little to no benefit.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Note: the
varkeyword is deprecated as of ES6(ES2015). It's quite rare to see usage ofvarin mordern code bases due to the behavior thatvarintroduces. Usage ofvarto declare and initialize variables still works because of back-ward compatibility of JavaScript. However, when working on pre-ES2015 code, trying to migrate to let and const will be too much effort for little to no benefit.