Message from JavaScript discussions
July 2017
— 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
— 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
— It is basically embedding logic in a cryptic string and I even forgot which S/s was for non whitespace and vice versa
— So yeah, you were right haha
— Yeah, regexp is pretty much a bad thing almost always
— Except for email validation, you don't want to do that yourself
— Did you get the job?
— No they wanted a senior React engineer and apparently the recruiter did not communicate well with them