Merge pull request #1049 from DouglasMV/master

Fixed backticks missing
This commit is contained in:
Ilya Kantor 2019-06-12 19:17:11 +03:00 committed by GitHub
commit 726f08a179
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@ importance: 5
# Check for spam
Write a function `checkSpam(str)` that returns `true` if `str` contains 'viagra' or 'XXX', otherwise false.
Write a function `checkSpam(str)` that returns `true` if `str` contains 'viagra' or 'XXX', otherwise `false`.
The function must be case-insensitive:

View file

@ -16,7 +16,7 @@ The array in the process:
```js no-beautify
Jazz, Blues
Jazz, Bues, Rock-n-Roll
Jazz, Blues, Rock-n-Roll
Jazz, Classics, Rock-n-Roll
Classics, Rock-n-Roll
Rap, Reggae, Classics, Rock-n-Roll

View file

@ -453,7 +453,7 @@ We can use an array as a deque with the following operations:
- `push(...items)` adds `items` to the end.
- `pop()` removes the element from the end and returns it.
- `shift()` removes the element from the beginning and returns it.
- `unshift(...items)` adds items to the beginning.
- `unshift(...items)` adds `items` to the beginning.
To loop over the elements of the array:
- `for (let i=0; i<arr.length; i++)` -- works fastest, old-browser-compatible.