Last active
October 2, 2018 05:21
-
-
Save faelplg/0f8cd1cfeaa81a2a741c140b5bf4cff4 to your computer and use it in GitHub Desktop.
Basic script Hello, Cindy!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generateComponent() { | |
const element__ = document.createElement('DIV'); | |
element__.className = 'container'; | |
const paragraph = document.createElement('P'); | |
const txt = document.createTextNode('Boo! ƪ(ړײ)ƪ'); | |
paragraph.appendChild(txt); | |
element__.appendChild(paragraph); | |
console.log('My JavaScript log.'); | |
return element__; | |
} | |
document.body.appendChild(generateComponent()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment