DEV Community

Discussion on: A tricky JavaScript interview question asked by Google

 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard • Edited

Believe it or not the language has moved on since Crockford wrote "The Good Parts"; as is obvious from the ES6 solution provided

I believe it!
I have edited my original answer, it was not my intention to claim that the current JavaScript ecosystem is the same as "old school Javascript".