DEV Community

Discussion on: 70 JavaScript Interview Questions

Collapse
 
hoangph271 profile image
Phan Huy Hoàng • Edited

I think there're a mistake here...!

function myFunc() {
  let a = b;
  a = b = 0;
}
myFunc();

Isn't this invalid syntax...?
It should be:

let a, b;
Collapse
 
macmacky profile image
Mark Abeto

Thanks man, I totally miss that one, hahaha