JavaScript Cardio - FizzBuzz | #shorts

preview_player
Показать описание
JavaScript Cardio FizzBuzz problem.
How to chain ternary operator | in a map() higher-order callback function.
Solving the FizzBuzz problem in a more modern way.

code:

What is FizzBuzz??????????????????????????????
Fizz buzz is a group word game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz".
What is FizzBuzz in coding?
Fizz Buzz is a very simple programming task, asked in software developer job interviews. A typical round of Fizz Buzz can be: Write a program that prints the numbers from 1 to 100 and for multiples of '3' print “Fizz” instead of the number and for the multiples of '5' print “Buzz”.

In this example I am not printing the result one by one, instead, I save them in an array. Then print the array.
Рекомендации по теме
Комментарии
Автор

the code complexity is more, and the code is not easy to understand, look into it please

RahulRaj-eicl