Skip to content

ayeniblessing101/home_sessions_day_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

home_sessions_day_1

Project Details
Language: JavaScript
TDD tool: Jasmine
Author: Ayeni Blessing
Version: 0.0.1

Contains:


aritGeo function, test spec and program
fizzBuzz function, test spec and program

AritGeo function

Description:

A function called 'aritGeo' that takes one argument, an Array. if checks if the array passed as an argument is Arithmetic, Geometric or neither Arithmetic nor Geometric. if argument is arithmetic progressions, it returns Arithmetic, if argument is geometric progressions, it returns Geometric, if argument is neither Arithmetic nor Geometric it returns -1 and if argument is empty it returns null

fizzBuzz function

Description:

A function called `fizzBuzz` 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, 3 and 5, respectively. When the number is not divisible by 3 or 5, the number itself isreturned.


These programs follows Test-Driven Development (TDD) process and the tool used is Jasmine.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published