Yngvarr

Generation

generate functionFri, 10 Feb 2023

timeout 10 button active

function timeout(ms) { return new Promise((resolve) => setTimeout(resolve, ms)); } async function asyncPrint(value, ms) { await timeout(ms); console.log(value); } asyncPrint('hello world', 5000);

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant