CJCoding With Joseph

Set a Data Attribute

A button with id="btn" needs a custom attribute. Set its 'data-state' attribute to 'active'.

Expected Output:

<button id="btn" data-state="active">Go</button>
Topics:
HTML DOM
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.