Update solution.md
This commit is contained in:
parent
2bc3aae430
commit
a2cb3c6f12
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
To make the search case-insensitive, let's bring the string to lower case and then search:
|
||||
|
||||
```js run
|
||||
```js run demo
|
||||
function checkSpam(str) {
|
||||
let lowerStr = str.toLowerCase();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue