Fix syntax error

This commit is contained in:
Darren Scerri
2017-12-12 09:45:19 +01:00
parent b75b9c3fb6
commit 863af5e159
2 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,6 @@
Use `Math.pow()` and `Math.sqrt()` to calculate the Euclidean distance between two points.
```js
var distance = x0, y0, x1, y1 =>
var distance = (x0, y0, x1, y1) =>
Math.sqrt(Math.pow(x1-x0, 2) + Math.pow(y1 - y0, 2))
```