Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

appendchild javascript

const parent = document.createElement('div');
const child = document.createElement('p');
const appendValue = parent.append(child);
console.log(appendValue) // undefined
const appendChildValue = parent.appendChild(child);
console.log(appendChildValue) // <p><p>
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #appendchild #javascript
ADD COMMENT
Topic
Name
5+4 =