Created
November 29, 2011 22:07
-
-
Save devboy/1406783 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var circle = { x: 100, y: 100, radius: 50 } | |
circle.x = 90; // will work fine | |
circle.y = "100"; // error: String should be Int | |
circle = { x: 90, y: 80, radius: 10 } // will work fine | |
circle = "circle"; // error: String should be { y : Int, x : Int, radius : Int } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment