r/ProgrammerTIL • u/Musical-Universe • Aug 13 '20
Other TIL to double check my variable declarations.
Spent three hours searching through my Javascript program to figure out why I was getting NaN in my arrays. After countless console.log() statements, I finally discovered i forgot a "this." for ONE variable in my constructor. sigh.
51
Upvotes
View all comments
Show parent comment
3
u/GoofAckYoorsElf Aug 14 '20
True. That however inherently applies to all interpreted languages. You either need a compiler for compiled languages or a linter for interpreted ones. A proper IDE helps too, of course.