document.body.onload = aboutMe;
function aboutMe() {
console.log("aboutMe function has loaded");
return [
{content: "let position = Student; "},
{content: "let name = Liam; "},
{content: "let mainLang = Javascript; "},
{content: "let location = CLASSIFIED; "},
{content: "let message = I know js, python html, css... I use vue.js, Made a couple games.; "},
{content: "let trailingCommas? = NO THANK YOU; "}
]
}
function appendToBody() {
let main = document.createElement("div");
for (let i = 0; i < aboutMe().length; i++) {
let content = document.createTextNode(aboutMe()[i].content);
main.appendChild(content);
}
document.body.appendChild(main);
document.body.appendChild(main);
}
appendToBody()
as you can see I program.
console.log('Name it, and it\'s my middle name')