Skip to content

Instantly share code, notes, and snippets.

View avipinto's full-sized avatar

Avi Pinto avipinto

View GitHub Profile
@avipinto
avipinto / c.md
Created July 18, 2012 19:24 — forked from padolsey/c.md
JS challenge

Implement Point so that:

new Point( new Point(10, 20) + new Point(30, 50) ).toString() === '{40,70}'

Must be generic and be able to handle x and y values from 0..999 (integers only)

Minor hint: you'll need to implement valueOf and toString methods.