Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Minimal "Hello World" using haxe JS
class HelloWorld {
static function main () {
untyped console.log ("Hello haxe JS");
}
}
HelloWorld = function() { };
HelloWorld.__name__ = ["HelloWorld"];
HelloWorld.main = function() {
console.log("Hello haxe JS");
};
HelloWorld.prototype.__class__ = HelloWorld;
HelloWorld.main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment