CJCoding With Joseph
15free / daySign inCreate account

Select the heading with id="heading", read its current text, and replace it with the UPPERCASE version. The result should read "WELCOME HOME".

Platform-Provided HTML (READ-ONLY):

<h2 id="heading">welcome home</h2>

Steps: 1. Select the heading and read its textContent. 2. Convert it with .toUpperCase() and assign it back to textContent.

Expected output

<h2 id="heading">WELCOME HOME</h2>

= newline. No newline after the last line.

Hints2 available
Topics
HTML DOM
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (clog, fn, fori)

Your output

Run your code to see the output here...

Test cases

Run your code to see test case results.