![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년 초과 전 | 답변 수: 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년 초과 전 | 답변 수: 0 | 0