I have a project due really soon, and I am just about sending my project in when I stumbled upon an error when I used the Google tool.
Does anyone know what this means and how I can fix it?
Thank you very much.
you are using a variable named
Info that is not defined, that doesn’t exist.
second line is saying in which file is happening, which is
Here is my code. I changed “Info” to “Tekst”, but it still doesn’t go away.
Do you know where the error is in my coding?
Here’s the bottom coding.
And where have you defined
I’m not sure how to do it. Do you know what element I must use to define Tekst?
Are you referring to:
let inpTekst = document.getElementById
Tekst is a variable that is used for the first time in the line
Tekst.innerHTML = Tekst.innerHTML + meldingTekst, you need to define it before you use it
I was wondering how I should define it?
Do you think you could help me with that, if you have time to do so?
It would mean a lot to me. <3
How do you define variables?
You need to define it with
const and give it a value.
Are you sure you didn’t want to use something else there? You have many other variables already defined to which you can set an innerHTML