Initial commit

This commit is contained in:
2025-07-23 09:31:23 +02:00
commit 151c62dd46
18 changed files with 204 additions and 0 deletions

16
Promise/promise.js Normal file
View File

@@ -0,0 +1,16 @@
function getMessage() {
return new Promise((resolve) => {
setTimeout(() => {
resolve("Wiadomość odebrana!");
}, 1000);
});
}
async function showMessage() {
const msg = getMessage();
console.log(msg);
}
showMessage();
//Co zwróci console.log, Czego brakuje w tym kodzie