MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/jic377/javascript_string/ga63uhq/?context=3
r/learnjavascript • u/tutorialstonight • Oct 26 '20
javascript string 🔥
https://www.tutorialstonight.com/js/js-string.php
31 comments sorted by
View all comments
47
You should really avoid using 'var' to declare your variables.
21 u/I-DONT-WANT-GOLD Oct 26 '20 Why? 4 u/[deleted] Oct 26 '20 It stimulates browsers' hunger for ram 2 u/I-DONT-WANT-GOLD Oct 26 '20 Wow, that is something I would never have imagined. Thank you! 7 u/mothzilla Oct 26 '20 The reply was nonsense, but most browsers support let and const, and if not (ie you want to support IE6) you can use a code transpiler.var has subtle scoping issues as pointed out by /u/0xc0ba17.
21
Why?
4 u/[deleted] Oct 26 '20 It stimulates browsers' hunger for ram 2 u/I-DONT-WANT-GOLD Oct 26 '20 Wow, that is something I would never have imagined. Thank you! 7 u/mothzilla Oct 26 '20 The reply was nonsense, but most browsers support let and const, and if not (ie you want to support IE6) you can use a code transpiler.var has subtle scoping issues as pointed out by /u/0xc0ba17.
4
It stimulates browsers' hunger for ram
2 u/I-DONT-WANT-GOLD Oct 26 '20 Wow, that is something I would never have imagined. Thank you! 7 u/mothzilla Oct 26 '20 The reply was nonsense, but most browsers support let and const, and if not (ie you want to support IE6) you can use a code transpiler.var has subtle scoping issues as pointed out by /u/0xc0ba17.
2
Wow, that is something I would never have imagined. Thank you!
7 u/mothzilla Oct 26 '20 The reply was nonsense, but most browsers support let and const, and if not (ie you want to support IE6) you can use a code transpiler.var has subtle scoping issues as pointed out by /u/0xc0ba17.
7
The reply was nonsense, but most browsers support let and const, and if not (ie you want to support IE6) you can use a code transpiler.
let
const
var has subtle scoping issues as pointed out by /u/0xc0ba17.
47
u/MrMimmet Oct 26 '20
You should really avoid using 'var' to declare your variables.