File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ importance: 5
44
55# Check for spam
66
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 ` .
88
99The function must be case-insensitive:
1010
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ The array in the process:
1616
1717``` js no-beautify
1818Jazz, Blues
19- Jazz, Bues , Rock- n- Roll
19+ Jazz, Blues , Rock- n- Roll
2020Jazz, Classics, Rock- n- Roll
2121Classics, Rock- n- Roll
2222Rap, 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:
453453- ` push(...items)` adds ` items` to the end.
454454- ` pop()` removes the element from the end and returns it.
455455- ` 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.
457457
458458To loop over the elements of the array:
459459 - ` 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