Yngvarr

Generation

generate functionSun, 15 Jan 2023

done function async

function addAsync(a, b, callback) { setTimeout(() => { callback(a + b); }, 1000) } addAsync(1, 2, (result) => { console.log(result); });

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant