Fix single quotes mismatch.
This commit is contained in:
parent
66145f5646
commit
4245cb4467
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ The caret `pattern:^` matches at the beginning of the text, and the dollar `patt
|
||||||
For instance, let's test if the text starts with `Mary`:
|
For instance, let's test if the text starts with `Mary`:
|
||||||
|
|
||||||
```js run
|
```js run
|
||||||
let str1 = 'Mary had a little lamb, it's fleece was white as snow';
|
let str1 = "Mary had a little lamb, it's fleece was white as snow";
|
||||||
let str2 = 'Everywhere Mary went, the lamp was sure to go';
|
let str2 = 'Everywhere Mary went, the lamp was sure to go';
|
||||||
|
|
||||||
alert( /^Mary/.test(str1) ); // true
|
alert( /^Mary/.test(str1) ); // true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue