CSS
- 9 ответов
- 0 вопросов
5
Вклад в тег
function rangeOfNumbers(startNum, endNum) {
let numArr = [];
if (startNum === endNum ) {
numArr.push(endNum)
return numArr;
} else {
numArr.push(startNum)
return [...numArr, ...rangeOfNumbers(startNum + 1, endNum)]
}
};
console.log(rangeOfNumbers(6,9))
const { exec } = require('child_process');
exec('yarn test -t "Google"', (err, stdout, stderr) => {
if (err) {
console.error(err);
return;
}
console.log(`stdout: ${stdout}`);
console.error(`stderr: ${stderr}`);
});