FizzBuzz: "Fizz" Requirement

Implement the Fizz feature of the FizzBuzz kata by following the TDD approach.

Fizz scenario

So far, we’ve only dealt with the not divisible scenario, which only covers the numbers not divisible by 3 and 5. In this lesson, let’s build the Fizz feature.

Handling input 3

As a reminder, our function should give back Fizz when the number passed is divisible by 3.

The Red phase

To obey the TDD constraints, we need to start writing a test that will take us to the Red stage:

Get hands-on with 1200+ tech skills courses.