I give up........ help

if (document.cookie !== ""){
    document.getElementById("cool").innerText == "Welcome" + document.cookie.substring(9);
}

This does nothing, even though document.cookie isn’t “”

You need = not == here:

document.getElementById("cool").innerText == "Welcome" ...
2 Likes

oh ok ty