@ -388,7 +388,7 @@ const matches = txt.match(pattern)
console.log(matches) // ['6', '2019']
```
### Cart ^
### Caret ^
- Starts with
@ -430,8 +430,8 @@ console.log(result) // true
1. The position of some particles on the horizontal x-axis -12, -4, -3 and -1 in the negative direction, 0 at origin, 4 and 8 in the positive direction. Extract these numbers and find the distance between the two furthest particles.
```js
points = ['-1', '2', '-4', '-3', '0', '4', '8']
sortedPoints = [-4, -3, -1, 0, 2, 4, 8]
points = ['-1', '2', '-4', '-3', '-1', '0', '4', '8']
sortedPoints = [-4, -3, -1, -1, 0, 2, 4, 8]
distance = 12