skip to Main Content

Xcode – Can you tell me where i did wrong?

Uncaught TypeError: planet.innerText is not a function .addEventListener("click",function() { let planet= document.getElementById("redplanet") planet.innerText("Nothing to report"); planet.classList.remove("alert"); }) document.getElementById("greenplanet").classList.add("alert") html code: ``` So my js code isn't working in inspect it says that line 23 is not a function any solution…

VIEW QUESTION
Back To Top
Search