Hi,
I don’t understand why this function is not working. https://jsfiddle.net/JuliaRie/jrxnrsw5/5/
Thank you in advance for your help!
Love,
Julia
Hi,
I don’t understand why this function is not working. https://jsfiddle.net/JuliaRie/jrxnrsw5/5/
Thank you in advance for your help!
Love,
Julia
.toUpperCase()
- capital C
Thank you, but it still didn’t help.
I know there are a lot of other errors:
dot at the end of the first line, misspelled querySelectorAll()
, misspelled innerHTML()
, then you are setting str
to an empty string and trying to upperCase it.
What a mess
We all started somewhere
I recommend you to add id="container"
to the div
in the HTML and use getElementById()
instead of querySelectorAll()
.
And look into correct syntax of innerHTML
(it is not a function).
Yes! I did it! I went from querySelectorAll to getElementsByClassName to getElementById. And only with the last one it worked.
So you can’t use classes with JS?
Why is the second function toLowerCase is not working? No errors.
...
lowercase(JS); // <-- missing quotes
}) // <-- missing parens