Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cheatsheet examples #8

Open
markknol opened this issue Feb 22, 2017 · 2 comments
Open

Cheatsheet examples #8

markknol opened this issue Feb 22, 2017 · 2 comments

Comments

@markknol
Copy link
Contributor

I found this in the cheatsheet: https://github.com/MatthijsKamstra/haxenode/blob/master/haxenode/cheatsheet.md

Type Casting section:

JavaScript

var car:Car = vehicle as Car;

var toString:String = String (10);
var toNumber:Number = Number ("10");
var toInteger:int = int (10.1);

Function types section:

JavaScript

function hello (msg:String):void {

}

var type:Function = hello;

This is not valid JavaScript, Javascript doesn't have types

@MatthijsKamstra
Copy link
Owner

you are completely true... I just copy paste it from http://www.openfl.org/archive/developer/documentation/actionscript-developers/ in this one might have slipped my attention

@MatthijsKamstra
Copy link
Owner

I only just notice you added this to node.js... the same mistake is in js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants