Hello i was trying to show a message to my user that they successfully upload their NFT Art work but i got errors using this code below
async function btnCreateItem() {
    let user = await Moralis.User.current();
    if (createItem) {
        document.getElementById("btnCreateItem").onclick = createItem;
        alert("Your NFT is Created Successfully!");
        console.log("Item is uploaded");
    } else {
        alert("Your NFT is not created");
        console.log("Item Uploading Failed!");
    }
};