DEV Community

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

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