Message from JavaScript discussions

July 2017

— You could look into the future, man


And know, somewhere ahead of the current executing statement, there is a variable being declared but not allocated yet (due to not being executed yet)

— 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

Message permanent page

— 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