Advertisement
728x90
javascript
1function foo() {
2
3let x = (y = 0);
4
5x++;
6
7y++;
8
9return x;
10}
11
12console.log(foo(), typeof x, typeof y);Choose the correct output:
A
1, undefined and undefinedB
ReferenceError: X is not definedC
1, undefined and numberD
1, number and numberAdvertisement
Responsive Ad
2of86