diff --git a/hello-js.html b/hello-js.html new file mode 100644 index 0000000..6971ca3 --- /dev/null +++ b/hello-js.html @@ -0,0 +1,16 @@ + + + + + JavaScript: Hello World + + +
+ + + \ No newline at end of file diff --git a/hello.coffee b/hello.coffee new file mode 100644 index 0000000..6ce3da5 --- /dev/null +++ b/hello.coffee @@ -0,0 +1,11 @@ +#!/usr/bin/env coffee + +/* + + Needs: + npm install -g coffee-script + +*/ + + +console.log "Hello World!" \ No newline at end of file diff --git a/hello.js b/hello.js new file mode 100644 index 0000000..1ea3387 --- /dev/null +++ b/hello.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +console.log("Hello World!") \ No newline at end of file diff --git a/hello.ts b/hello.ts new file mode 100644 index 0000000..dabeb21 --- /dev/null +++ b/hello.ts @@ -0,0 +1,20 @@ +#!/usr/bin/env ts-node + +/* + + Needs: + npm install -g typescript + npm install -g ts-node + +*/ + +class Greeter { + constructor(public greeting: string) { } + greet() { + return this.greeting; + } +}; + +var greeter = new Greeter("Hello World!"); + +console.log(greeter.greet()); \ No newline at end of file diff --git a/readme.md b/readme.md index 4e896f8..355c87f 100644 --- a/readme.md +++ b/readme.md @@ -5,3 +5,6 @@ This is a collection of Hello World programs ## Available variants - Ruby +- Node +- HTML + Javascript +- \ No newline at end of file