# find the total distance of point on x axis in js?

I am creating a program in JavaScript that will detect the line is in parallel to x or Y axis so here I want to distance of 5+3-2=6 for total distance but here I get the distance of 5+3=8 and 5-2=3 so how to do like that I will get the result like 5+3-2.code is… Read More find the total distance of point on x axis in js?