Skip to content

Commit 29ef076

Browse files
authored
Created: Solution for SevenBoom!
1 parent c3e2497 commit 29ef076

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

L-B/0025 Seven Boom!/SevenBoom.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function sevenBoom(arr) {
2+
for (let i = 0; i < arr.length; i++) {
3+
if (String(arr[i]).includes('7')) {
4+
return 'Boom!';
5+
}
6+
}
7+
return 'there is no 7 in the array';
8+
}

0 commit comments

Comments
 (0)