To make two variables equal at the same time in JavaScript:
javascriptlet a = b = 9; console.log(a); // 9 console.log(b); // 9
let a = b = 9; console.log(a); // 9 console.log(b); // 9
Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.