Why same code work differently? "Render HTML Elements to the DOM"

Here is the problem, Render HTML Elements to the DOM.
When I run this,


It’s not working it says,

Build error, open your browser console to learn more.

But When I run this,


It’s working properly!

Why same code work differently? :roll_eyes:

There’s capitalization error in the id in first code.

1 Like

I feel shy :sob: :sob: