Add solution to match whitespace problem (#27470)
* Add solution to match whitespace problem * fix: corrected case of countWhiteSpace on line 61
This commit is contained in:
parent
37642f8bcb
commit
13b3e3fa9b
@ -57,6 +57,8 @@ let result = sample.match(countWhiteSpace);
|
||||
<section id='solution'>
|
||||
|
||||
```js
|
||||
// solution required
|
||||
let sample = "Whitespace is important in separating words";
|
||||
let countWhiteSpace = /\s/g;
|
||||
let result = sample.match(countWhiteSpace);
|
||||
```
|
||||
</section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user