Write a function that takes coordinates of two points on a three-dimensional plane and returns the length of the line segment connecting those two points.
lineLength(arr[0]={15, 7, 5}, arr[1]={22, 11, 1}) ➞ 8.06
lineLength(arr[0]={0, 0, 0}, arr[1]={0, 0, 0}) ➞ 0
lineLength(arr[0]={0, 0, 0}, arr[1]={1, 1, 1}) ➞ 1.41Check my profile for other challenges in the series.