T
28

Question about people using 'var' in every single JavaScript tutorial for beginners

I've been learning for 3 months and every video on YouTube uses 'var' instead of 'let' or 'const', which my actual course says is outdated and can cause bugs, so why is it still the default example?
2 comments

Log in to join the discussion

Log In
2 Comments
coleman.karen
Those old tutorials just haven't been updated, stick with your course's advice on let and const.
5
the_rose
the_rose1mo ago
Totally agree, ran into that same outdated info.
1