Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(x1, y1, x2, y2) {
- let x = Math.abs(x1 - x2);
- let y = Math.abs(y1 - y2);
- console.log(Math.sqrt(x * x + y * y));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement