File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ importance: 5
4
4
5
5
# Check for spam
6
6
7
- Write a function ` checkSpam(str) ` that returns ` true ` if ` str ` contains 'viagra' or 'XXX', otherwise false.
7
+ Write a function ` checkSpam(str) ` that returns ` true ` if ` str ` contains 'viagra' or 'XXX', otherwise ` false ` .
8
8
9
9
The function must be case-insensitive:
10
10
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ The array in the process:
16
16
17
17
``` js no-beautify
18
18
Jazz, Blues
19
- Jazz, Bues , Rock- n- Roll
19
+ Jazz, Blues , Rock- n- Roll
20
20
Jazz, Classics, Rock- n- Roll
21
21
Classics, Rock- n- Roll
22
22
Rap, Reggae, Classics, Rock- n- Roll
Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ We can use an array as a deque with the following operations:
453
453
- ` push(...items)` adds ` items` to the end.
454
454
- ` pop()` removes the element from the end and returns it.
455
455
- ` shift()` removes the element from the beginning and returns it.
456
- - ` unshift(...items)` adds items to the beginning.
456
+ - ` unshift(...items)` adds ` items` to the beginning.
457
457
458
458
To loop over the elements of the array:
459
459
- ` for (let i=0; i<arr.length; i++)` -- works fastest, old- browser- compatible.
You can’t perform that action at this time.
0 commit comments