Add solution to find more than one challenge (#27476)
This commit is contained in:
parent
13b3e3fa9b
commit
6a777a9b16
@ -57,6 +57,8 @@ let result = twinkleStar; // Change this line
|
||||
<section id='solution'>
|
||||
|
||||
```js
|
||||
// solution required
|
||||
let twinkleStar = "Twinkle, twinkle, little star";
|
||||
let starRegex = /twinkle/gi;
|
||||
let result = twinkleStar.match(starRegex);
|
||||
```
|
||||
</section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user