Skip to content

Commit c3e2497

Browse files
authored
Created: README.md for Seven Boom!
1 parent b6fd900 commit c3e2497

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

L-B/0025 Seven Boom!/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Seven Boom!
2+
[Edabit Problem](https://edabit.com/challenge/6R6gReGTGwzpwuffD)
3+
4+
Create a function that takes an array of numbers and return `"Boom!"` if the digit 7 appears in the array. Otherwise, return `"there is no 7 in the array"`.
5+
6+
Examples:
7+
```javascript
8+
sevenBoom([1, 2, 3, 4, 5, 6, 7]) ➞ "Boom!"
9+
// 7 contains the number seven.
10+
11+
sevenBoom([8, 6, 33, 100]) ➞ "there is no 7 in the array"
12+
// None of the items contain 7 within them.
13+
14+
sevenBoom([2, 55, 60, 97, 86]) ➞ "Boom!"
15+
// 97 contains the number seven.
16+
```
17+

0 commit comments

Comments
 (0)