diff --git a/vectorDistance.md b/vectorDistance.md index 425c2a2b0..275ec6596 100644 --- a/vectorDistance.md +++ b/vectorDistance.md @@ -1,8 +1,8 @@ ### VectorDistance -Explain briefly what the snippet does. +Returns the distance between two points. -Explain briefly how the snippet works. +Splits the arguments array into two points. Use `Array.prototype.reduce()`,`Math.pow()` and `Math.sqrt()` to calculate the Euclidean distance between two vectors. ```js const vectorDistance = (...coords) => {