9

document.innerHTML('Hello world');

Comments
  • 3
    Hello, fellow js dev.
  • 2
    console.log("Hello");
  • 9
    document.innerHTML isn't a function. you can use document.body.innerHTML = 'Hello, World' instead
  • 0
    var rant = document.getElementById("rant");
    var newPost = document.createElement("post");
    var newTextNode = document.createTextNode("welcome!");
    newPost.appendChild(newTextNode);
    rant.appendChild(newPost);

    Don't flame me for errors, hard enough to do on mobile. 😅
  • 1
    Web developers...
  • 1
    @Mitiko in my defense, he started in ecmascript.
    If he had chosen another language I would've done it that language. 😋
Add Comment