![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/20805518_1610088781235_DEF.jpg)
Ali Q
Followers: 0 Following: 0
Feeds
提问
What would be the output of the below code snippet and why ?
var x = 0; a(); function a() { var x = 2; b(); console.log(x); } function b() { x++;...
3 years 前 | 1 个回答 | 0
1
个回答提问
Could someone please optimize this code? My code:
if (x === 0) { y = y + 2; console.log(y); } else { y = y + 3; console.log(y); }
3 years 前 | 0 个回答 | 0