如果我们把非布尔值作为条件呢 ?...0 1 2 3 4 5 6 7 8 9 10
当我们从0数到9时,每个数字(0-9)都有不同的符号,但是当我们数到10时,我们需要两个不同的符号(1和0)来表示这个数字。...function foo(x, y) {
console.log(x);
console.log(y);
}
foo(1, 2); // 打印 1, 2
foo(1);...[1, 2, 3, 4, 5].map(multiplyBy3);
console.log(result); // logs [3, 6, 9, 12, 15];
现在,将console.log作为参数传给...parseInt()只接受两个参数,因此忽略了第三个参数['1'、'7'、'11']。以10为基数的字符串“1”表示数字1。