Skip to content

Hello World

Kent 'picat' Gruber edited this page Dec 3, 2017 · 1 revision

How can someone program anything without providing a Hello World example?

Input

<!DOCTYPE html>
<html>
  <body>
    <script src="builder.js"></script>
    <script>
      // Builder module
      var b = new Builder();
  
      // create basic h1 heading element
      var helloWorld = b.heading({ text: "Hello World!" })
      
      // add the h1 tag to the document body
      b.append(helloWorld)
    </script>
  </body>
</html>

Output

Appended to the document body.

<h1>Hello World!</h1>

We're Done

🎉 That's all there is to it!

Clone this wiki locally