From f5b44976f65311a7467ad8bbad7478aa886c3488 Mon Sep 17 00:00:00 2001 From: yendoz <102748767+yendoz@users.noreply.github.com> Date: Thu, 12 May 2022 13:03:20 +0900 Subject: [PATCH] Update 12_day_regular_expressions.md --- 12_Day_Regular_expressions/12_day_regular_expressions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/12_Day_Regular_expressions/12_day_regular_expressions.md b/12_Day_Regular_expressions/12_day_regular_expressions.md index 914ebbd..f5e9bed 100644 --- a/12_Day_Regular_expressions/12_day_regular_expressions.md +++ b/12_Day_Regular_expressions/12_day_regular_expressions.md @@ -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 ```