Skip to content

nicklathe/js_control_flow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##JS Control flow Create the following files and use looping structures we learned in class to solve the problems.

##reverse.js Write a program that will take a hardcoded string, and console log the reversed version of it. Use a for loop

var inputString = "building"

##filterLongWords.js Hardcode an array of words. Have a variable maxLength, push words that are less than the maxLength into a new array, and console.log that.

##grade.js Output the following letter grade from a variable with with a test score. Display either "A", "B", "C", "D", or "F", for an score that is an integer between 0 and 100. **Bonus: Try it again with a switch statement **

##pluralizer.js Take an input like

thing = "cat"
count = "5"

and output the pluralized form of the word like "5 cats" or "1 dog"..

##tempConvert.js Convert a temperature from F to C.

Convert it to fahrenheit and output "NN°C is NN°F".

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%