Geometry intersect using for loop in code block

hi guys am trying to learn using code block please help me out where am doing mistake

well, I think one issue will be that you can only use strings as keys, try calling toString() on points[i.toString()] = Geometry...

or whatever function you like to use to turn an object into a string