Přidat otázku mezi oblíbenéZasílat nové odpovědi e-mailem Nejde nastavit const v JS

const successNotification = window.createNotification({
    theme: "success"
});

successNotification({
    title: "Úspěch",
    message: "Úspěch"
});

const errorNotification = window.createNotification({
    theme: "error"
});

errorNotification({
    title: "Chyba",
    message: "Chyba"
});

Případně jenom:

window.createNotification({
    theme: "success"
})({
    title: "Úspěch",
    message: "Úspěch"
});

window.createNotification({
    theme: "error"
})({
    title: "Chyba",
    message: "Chyba"
});

Reakce na odpověď

1 Zadajte svou přezdívku:
2 Napište svou odpověď:
3 Pokud chcete dostat ban, zadejte libovolný text:

Zpět do poradny