Step 5
helper.js
export const sleep = (ms) => {
return new Promise(resolve => setTimeout(resolve, ms));
}
functions.js
import { sleep } from "./helper.js";
export const writeLog = async(message, delay) => {
for(let char in message) {
process.stdout.write(message[char]);
await sleep(delay);
}
process.stdout.write('\n');
}
solution.js
import { sleep } from "./helper.js";
export const writeLog = async(message, delay) => {
for(let char in message) {
process.stdout.write(message[char]);
await sleep(delay);
}
process.stdout.write('\n');
}
Не проходит проверку