Skip to content

Instantly share code, notes, and snippets.

@devboy
Created November 29, 2011 22:07
Show Gist options
  • Save devboy/1406783 to your computer and use it in GitHub Desktop.
Save devboy/1406783 to your computer and use it in GitHub Desktop.
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