DEV Community

Discussion on: Understanding var, let and const in Javascript

Collapse
 
hiholas profile image
Nico Delgado

Hi!, I think it's always better to avoid using var unless we are dealing with legacy code that you need to maintain without refactoring.

Collapse
 
azharahmed98 profile image
Azhar Ahmed A • Edited

yeah true,
its better to avoid using var