CJCoding With Joseph
15free / daySign inCreate account

Build a Follow Button

An empty container <div> has the id panel. Create a <button> element with the text Follow, give it the class btn, set a data-user attribute to alice, and append it inside the panel.

Platform-Provided HTML (READ-ONLY):
``html
<div id="panel"></div>
``

Expected Output:

<div id="panel"><button class="btn" data-user="alice">Follow</button></div>

= newline. No newline after the last line.

Hints4 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.