DEV Community

loading...

Discussion on: JavaScript Interview Questions — Tricky Questions

Collapse
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?

Collapse
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.