Skip to content

awanjila/fizz-buzz-lab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Fizz Buzz

Create a function to return Fizz, Buzz, FizzBuzz, or the argument it receives, all depending on the argument of the function, a number that is divisible by, 3, 5, or both 3 and 5, respectively.

When the number is not divisible by 3 or 5, the number itself should be returned.

How to Run this Lab

  • Clone the repository
  • Open index.html in your browser to see the currently failing test specs you are to pass
  • Open the repository in your favorite text editor to explore the different files
  • Open js\fizz-buzz.js and write the function(s) or lines of code to pass the tests
  • You could refresh index.html in your browser intermittently to see the status of test specs.

##Notes

  • Prior understanding of Javascript classes, returning, and conditional statements will be required to complete this exercise.

  • Remember that passing code is just the first step. The goal is to work towards a solution that is as readable and expressive as you can make it.

  • Please make your solution as general as possible. Good code doesn't just pass the test suite, it works with any input that fits the specification.

Have fun!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 60.9%
  • JavaScript 39.1%