re: A Tricky JavaScript Interview Question Asked by Google VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I agree with you on the interview process. On the other hand, this question is great to start a conversation on why old-school JavaScript is bad -...
 

No-one would dispute that "old-school JavaScript" had lots of flaws; but most developers with a job will have migrated to a "safer" programming language some time ago; namely JavaScript. Believe it or not the language has moved on since Crockford wrote "The Good Parts"; as is obvious from the ES6 solution provided.

And Typescript is not "another programming language" that magically guarantees you are free of the issues illustrated in the example question. It's still just JavaScript. I can still type that problem loop into my editor; Typescript will still compile and it will still produce the same output.

code of conduct - report abuse