Sollicitatievraag bij Canva

What is the difference between Java and JavaScript? Some basic knowledge on multi-thread, can't remember. If you have 1000 2d points as a tuple like (x1, y1) how could you store these points and count the number of occurrence of each position efficiently?