#Doing a pre-course in coding...

10 messages · Page 1 of 1 (latest)

loud rose
#

Hello there!
I'm doing a pre-course before starting my journey as a coder and I'm struggling to hang in there.
Can someone please tell me what I'm doing wrong here:

button.addEventListener("click", () => {
button.innerText = "Clicked!"
button.disabled = true```
fading finch
#

What error are you getting?

fading finch
#

Looks like you have an arrow function that isn't being closed on the third line.

loud rose
#

Ah!

fading finch
loud rose
#

I'm terrible at reading apparantly. Thanks for your help!

#

It's an introductory course that explains how to make a button....do something, I guess.

fading finch
#

👍