DEV Community

Discussion on: 3 topics in 1 JavaScript interview question

Collapse
 
laurieontech profile image
Laurie

Really well written! One minor thing, based on that loop, I believe it will log 0, 1, 2 and not 1, 2, 3? That detail doesn't effect all the wonderfully explained concepts though!

Collapse
 
maciekchmura profile image
Maciek Chmura

ups :) you are absolutely right, thank you for pointing this out :)

fixed