Skip to content

Instantly share code, notes, and snippets.

@jguertl
Created May 18, 2015 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jguertl/af7dd7c695adcebf000f to your computer and use it in GitHub Desktop.
Save jguertl/af7dd7c695adcebf000f to your computer and use it in GitHub Desktop.
FunScript Tutorial
class Greeter {
constructor(public greeting: string) { }
greet() {
return "<h1>" + this.greeting + "</h1>";
}
};
var greeter = new Greeter("FunScript!");
var str = greeter.greet();
document.body.innerHTML = str;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment