Skip to content

ShahWahidy/JavaScript-conditionals-loops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

JavaScript-conditionals-loops

1 - GenBuzz

Using the Instructions below, write a function that prints numbers from 1 to an upper limit. That upper limit should be passed into your function as an argument. Ex. genBuzz(15) should print the genBuzz pattern described below from 1 to the upper limit of 15. Instructions: For numbers from 1 to an upper limit (inclusive), print 'Gen' to the console if the number is a multiple of 3, print 'Buzz' if it is a multiple 5, print 'GenBuzz' if it a multiple of both 3 and 5. Otherwise, print the number to the console. Be sure to check that number your upperLimit is of type number. E-Commerce Item list

2 - Use the requiremets below to create a function that takes in an item and prints the price to the console. Use a switch statement to print the price of the each item in the store to the console. Ex. itemList('shoes') should print Shoes are $50 to the console Items:

Shoes- $50 Jeans- $25 Hat- $12 Socks- $2 If the function input is not an item in the store, then print 'Invalid Item' to the console.

3 - This link contains instructions for completing #3: https://docs.google.com/document/d/1lp3TI6wICWtmrNadPkDVI7gmBPo5ZBBEv0ZlP21ds7A/edit?usp=sharing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published