CJCoding With Joseph

Create and Append a List Item

An empty unordered list has id="list". Create a new <li> element, set its text to 'New item', and append it to the list.

Expected Output:

<ul id="list"><li>New item</li></ul>
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.