复制1let num = 10; 2 3const increaseNumber = () => num++; 4const increasePassedNumber = number => number++; 5 6const num1 = increaseNumber(); 7const num2 = increasePassedNumber(num1); 8 9console.log(num1); 10console.log(num2);
1let num = 10; 2 3const increaseNumber = () => num++; 4const increasePassedNumber = number => number++; 5 6const num1 = increaseNumber(); 7const num2 = increasePassedNumber(num1); 8 9console.log(num1); 10console.log(num2);
本题为“单选题”
题库维护不易,您的支持就是我们最大的动力!