I have some unknown errors in my website coding

Hello.
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.
Feil
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 chatmedoss.html

1 Like

image
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.
image

And where have you defined Tekst?

I’m not sure how to do it. Do you know what element I must use to define Tekst?
Thank you

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. :slight_smile: <3

How do you define variables?
You need to define it with let or 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

1 Like