DEV Community


Discussion on: JavaScript Interview Questions — Tricky Questions

zapbampow profile image
Clayton Ingalls

I have never had a situation where I would write let a = b = 0. What is a situation where that code would make sense?

aumayeung profile image
John Au-Yeung Author

I never do it. It's better not to do it since b would be a global variable.