Why is this toUppercase() not working?

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 :wink: 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 :slight_smile:

We all started somewhere :slight_smile:

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.

https://jsfiddle.net/JuliaRie/jrxnrsw5/33/

The Difference Between ID and Class

...
  lowercase(JS); // <-- missing quotes
}) // <-- missing parens