Update solution.md

This commit is contained in:
Mau Di Bert 2019-05-25 09:25:10 -03:00 committed by GitHub
parent 2bc3aae430
commit a2cb3c6f12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();