r/learnjavascript • • Oct 26 '20

Javascript string 🔥

193 Upvotes

31 comments sorted by

View all comments

47

u/MrMimmet Oct 26 '20

You should really avoid using 'var' to declare your variables.

1

u/ekim43 Oct 27 '20

Note: If you aren’t using something like babel, there are compatibility issues with some older browsers. I had a client with an older iPad (safari) and and ofc, the dreaded IE, where JS wouldn’t work because I was using let/const.