Write distance(p, q) for points given as [x, y], returning the straight-line distance rounded to 2 decimals.
distance([0, 0], [3, 4]) → 5
distance([1, 1], [1, 1]) → 0
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.