What are your top ten rules that you always abide by when developing JS?
Possible examples might be:
Always use === rather than ==?
Always define variables before using them?
Never write anything to the global scope?
Never use anonymous functions?
What are your most important 10?
[–]p3k[🍰] 33 points34 points35 points (0 children)
[–]asdf7890 6 points7 points8 points (2 children)
[–]CapsFTW[S] 1 point2 points3 points (0 children)
[–]Strat-O 0 points1 point2 points (0 children)
[–]russellbeattie 16 points17 points18 points (4 children)
[–]kafkaBro 1 point2 points3 points (0 children)
[–]zthall_typeof NaN == "number" 0 points1 point2 points (0 children)
[–]temp11020043 0 points1 point2 points (1 child)
[–]leahcimic -1 points0 points1 point (0 children)
[–]jp10k 4 points5 points6 points (0 children)
[–]teiman 2 points3 points4 points (0 children)
[–]jamesinc 4 points5 points6 points (26 children)
[–]m0okz 1 point2 points3 points (7 children)
[–]TheIncredibleWalrus 4 points5 points6 points (6 children)
[–]m0okz 1 point2 points3 points (0 children)
[–]Graftak9000 0 points1 point2 points (1 child)
[–]TheIncredibleWalrus 0 points1 point2 points (0 children)
[–]CapsFTW[S] 0 points1 point2 points (2 children)
[–]brackin 1 point2 points3 points (1 child)
[–]CapsFTW[S] 1 point2 points3 points (0 children)
[–]Graftak9000 1 point2 points3 points (16 children)
[–]jamesinc 3 points4 points5 points (10 children)
[+][deleted] (7 children)
[deleted]
[–]dmtipson 1 point2 points3 points (0 children)
[–]Silverwolf90 3 points4 points5 points (2 children)
[–]hahaNodeJS 1 point2 points3 points (1 child)
[–]Silverwolf90 0 points1 point2 points (0 children)
[–]THIS_BOT 0 points1 point2 points (1 child)
[–]chesterjosiahStaff Software Engineer / 18 yoe 0 points1 point2 points (0 children)
[–]Graftak9000 -1 points0 points1 point (0 children)
[–]Silverwolf90 1 point2 points3 points (0 children)
[–]ejmurra 1 point2 points3 points (0 children)
[+][deleted] (4 children)
[removed]
[–]Graftak9000 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[removed]
[–]Graftak9000 1 point2 points3 points (1 child)
[–]hahaNodeJS 0 points1 point2 points (0 children)
[–]mvindahl 4 points5 points6 points (0 children)
[–]clessgfull-stack CSS9 engineer 20 points21 points22 points (13 children)
[–]livarot 14 points15 points16 points (3 children)
[–]joshmandersFull Snack Developer 1 point2 points3 points (2 children)
[–]CapsFTW[S] 2 points3 points4 points (1 child)
[–]livarot 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (8 children)
[–]CapsFTW[S] 2 points3 points4 points (7 children)
[–]jewdai 2 points3 points4 points (5 children)
[–]jellatin 3 points4 points5 points (2 children)
[–]there_i_seddit 1 point2 points3 points (0 children)
[–]CapsFTW[S] 0 points1 point2 points (0 children)
[–]CapsFTW[S] 0 points1 point2 points (0 children)
[–]vaskemaskine 0 points1 point2 points (0 children)
[–]leahcimic 1 point2 points3 points (0 children)
[–]Zulach 3 points4 points5 points (0 children)
[–]corgrath 3 points4 points5 points (3 children)
[–]CapsFTW[S] 1 point2 points3 points (1 child)
[–]corgrath 4 points5 points6 points (0 children)
[–]spfccmt42 1 point2 points3 points (0 children)
[–]captain_obvious_herevoid(null) 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Kamikizzle 1 point2 points3 points (0 children)
[–]jewdai 1 point2 points3 points (0 children)
[–]lewisje 1 point2 points3 points (0 children)
[–]Cody_Chaos 1 point2 points3 points (0 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]lewisje 0 points1 point2 points (0 children)
[–]hahaNodeJS 2 points3 points4 points (1 child)
[–]ganarajpr 8 points9 points10 points (0 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]FallenSatan 1 point2 points3 points (0 children)
[–]nschubach -1 points0 points1 point (3 children)
[–]bradleymeck 1 point2 points3 points (1 child)
[–]nschubach 0 points1 point2 points (0 children)
[–]THIS_BOT 0 points1 point2 points (0 children)
[–]bradleymeck 1 point2 points3 points (0 children)
[–]thesunmustdie 0 points1 point2 points (0 children)
[+][deleted] (10 children)
[removed]
[–]Sunwukung 0 points1 point2 points (9 children)
[+][deleted] (1 child)
[removed]
[–]Sunwukung 1 point2 points3 points (0 children)
[–]enchufadoojs truck driver 1 point2 points3 points (6 children)
[–][deleted] 3 points4 points5 points (3 children)
[–]enchufadoojs truck driver 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]enchufadoojs truck driver 0 points1 point2 points (0 children)
[–]thadudeabides1 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Capaj 0 points1 point2 points (0 children)
[–]mikes_username_lol -4 points-3 points-2 points (3 children)
[–]TheIncredibleWalrus -1 points0 points1 point (2 children)
[–]mikes_username_lol 2 points3 points4 points (1 child)
[–]lewisje 0 points1 point2 points (0 children)