Problem Solving #1 Seven Boom! | JavaScript Practice

preview_player
Показать описание
Link to problem

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".

Examples
sevenBoom([1, 2, 3, 4, 5, 6, 7]) ➞ "Boom!"
// 7 contains the number seven.

sevenBoom([8, 6, 33, 100]) ➞ "there is no 7 in the array"
// None of the items contain 7 within them.

sevenBoom([2, 55, 60, 97, 86]) ➞ "Boom!"
// 97 contains the number seven.

JavaScript tutorials in hindi
Рекомендации по теме
Комментарии
Автор

Thank you sir, I think applying this kind of logic on each question, surely, it will improve the logical thinking ability to complete the real-world task. love to see more content like this & thanks again for sharing this series. Sir!

Abdulazizweb
join shbcf.ru