photo

Ali Q


Last seen: 3年以上 前 2021 年からアクティブ

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

0

回答