Skip to content

A site that replaces multiples of 3 with 'ping,' 5 with 'pong,' and 15 with 'ping-pong' (Epicodus Intro Week 3 Code Review)

Notifications You must be signed in to change notification settings

codemargaret/ping-pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping-Pong

A variation on fizz buzz, 08.24.2017

By Margaret Berry

Description

The user inputs a number, and the site produces a list of numbers from one to the user number. All multiples of 3 are replaced with 'ping,' multiples of 5 with 'pong,' and multiples of 15 with 'ping-pong.'

Specifications

Spec Input Output
It can count up to the provided number. 4 1, 2, 3, 4
Numbers divisible by 3 are replaced with "ping." 6 1, 2, ping, 4, 5, ping
Numbers divisible by 5 are replaced with "pong." 5 1, 2, ping, 4, pong
Numbers divisible by 15 are replaced with "ping-pong." 15 1, 2, ping, 4, pong, ping, 7, 8, ping, pong, 11, ping, 13, 14, ping-pong

Setup/Installation Requirements

Run the following commands in Terminal:

  1. $ git clone this repository
  2. $ cd ping-pong
  3. $ open index.html

Known Bugs

There are no known bugs at this time.

Support and contact details

If you have questions, comments, or concerns, please contact Margaret. Feel free to make a contribution to the code.

Technologies Used

  • HTML
  • CSS
  • Bootstrap
  • JavaScript
  • jQuery

License

This software is licensed under the MIT license.

Copyright (c) 2017 Margaret Berry

About

A site that replaces multiples of 3 with 'ping,' 5 with 'pong,' and 15 with 'ping-pong' (Epicodus Intro Week 3 Code Review)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published