JavaScript Demo: Statement - If...Else. xxxxxxxxxx. 1. function testNum(a) {. 2. let result;. 3. if (a > 0) {. 4. result = 'positive';.
確定! 回上一頁