Creating Elements
Creating Elements
document.createElement creates a new element object. It does not appear on the page until you insert it into the DOM.
This two-step model matters: create the node, configure it, then append it to a parent. If you only build a string or assign a variable, the visible list will not change.
Your task: Create a new li for the next deployment task, set its text to Run smoke tests, add the task class, and append it to the deployment checklist.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
Creating Elements
document.createElement creates a new element object. It does not appear on the page until you insert it into the DOM.
This two-step model matters: create the node, configure it, then append it to a parent. If you only build a string or assign a variable, the visible list will not change.
Your task: Create a new li for the next deployment task, set its text to Run smoke tests, add the task class, and append it to the deployment checklist.