Skip to content
This repository

Hello System!

The first thing we want to do is make a simple object that can print out “Hello World!” to make sure all is well and done install wise.

Source

var sys = require('sys')
  , System = require('interface').System
System([
  function(system,interfaces,closures) {
    interfaces["Hello"] = {properties:
      {print:
        {value:function(){
          sys.puts("Hello World!")
       }}
     }
    }
  }
]).create("Hello").print()

Output

Hello World!

Onto the DOM

For our small implementation of the DOM we are going to implement Element as specified in the Level 1 Spec .

Something went wrong with that request. Please try again.