From 31c98f67ac972eb84b41dcccde9988342f3f3ee3 Mon Sep 17 00:00:00 2001 From: Flurin Egger Date: Thu, 17 Nov 2016 10:10:39 +0100 Subject: [PATCH 1/5] Add JavaScript Hello World --- hello.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 hello.js diff --git a/hello.js b/hello.js new file mode 100644 index 0000000..43da329 --- /dev/null +++ b/hello.js @@ -0,0 +1,3 @@ +#!/bin/node + +console.log("Hello World!") \ No newline at end of file From 4a5c190c6c3187e3d2c28a99e585be3c2fa6f726 Mon Sep 17 00:00:00 2001 From: Flurin Egger Date: Thu, 17 Nov 2016 13:08:25 +0100 Subject: [PATCH 2/5] Add html + javascript Hello World --- hello-js.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hello-js.html 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 From 82b43685afa19c97393bffa6a492d2d54870eb6d Mon Sep 17 00:00:00 2001 From: Flurin Egger Date: Thu, 17 Nov 2016 13:09:47 +0100 Subject: [PATCH 3/5] Fix node path in node.js hello world --- hello.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello.js b/hello.js index 43da329..1ea3387 100644 --- a/hello.js +++ b/hello.js @@ -1,3 +1,3 @@ -#!/bin/node +#!/usr/bin/env node console.log("Hello World!") \ No newline at end of file From 82d453db56bdcc6f950ee1432a3322eeca3f6943 Mon Sep 17 00:00:00 2001 From: Flurin Egger Date: Thu, 17 Nov 2016 13:09:54 +0100 Subject: [PATCH 4/5] Update readme --- readme.md | 3 +++ 1 file changed, 3 insertions(+) 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 From 2eb1e057c3c4ee035ffb590004dbc3ec3d53b416 Mon Sep 17 00:00:00 2001 From: Flurin Egger Date: Thu, 17 Nov 2016 13:22:20 +0100 Subject: [PATCH 5/5] WIP --- hello.coffee | 11 +++++++++++ hello.ts | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 hello.coffee create mode 100644 hello.ts 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.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