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:
Joe Erickson
2019-01-24 15:23:07 -05:00
committed by Paul Gamble
parent 37642f8bcb
commit 13b3e3fa9b

View File

@ -57,6 +57,8 @@ let result = sample.match(countWhiteSpace);
<section id='solution'> <section id='solution'>
```js ```js
// solution required let sample = "Whitespace is important in separating words";
let countWhiteSpace = /\s/g;
let result = sample.match(countWhiteSpace);
``` ```
</section> </section>