Build a Follow Button
mediumQuestion 115An 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):
<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
Sign in to use hintsTopics
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.