how to create a point in javascript code example Example: how to create a point in js var point = new Point(10, 5);