Message from JavaScript discussions

July 2017

— You could perhaps, at the top of your functions, get a list of all the variables being declared


This is especially powerful after a function finished executing too, since if you use that abstraction on a function after the fact, you could also see the same information from the outside

— How to prevent the zoom in website ? f.e :- on android browser. any tip pls ?

— It is perhaps default behaviour of js, hoisting

— Exactly, this is how hoisting works

— Currently JS provides us with very inconsistent ways of determining if a variable is undeclared versus unassigned... you are forced into relying on a reference error

Message permanent page

— But the parser knows... if we had some abstraction like the hash thing, we could know

— It would mean so much for debugging and monitoring of scopes

— nubilfi welcome :)

— TRGWII I forgot to mention about the wordwrap function, the senior engineer agrees with you on that the regex makes it less readable

Message permanent page

— It is basically embedding logic in a cryptic string and I even forgot which S/s was for non whitespace and vice versa

Message permanent page

— So yeah, you were right haha