Skill Test - Functions

Part 1

1.create a function called outputCity( )
2.the function will accept one input parameter named inCityName
3.within the function use console.log( ) to display inCityName in a message that includes "Student City "
4.Call the function in a runtime script
-----a.pass "Ames" into the function
5.Call the function using a button with an onclick event handler
-----a.pass "Des Moines" into the function



Part 2

1.create a function called returnCityState( )
2.the function will accept one input parameter named inputCity
3.create a local variable named studentState with a value of "Iowa"
4.concatenate inputCity with studentState, remember to place a space between the words
5.return the concatenated string
6.Call the function within a console.log( ) command during runtime to output the returned value from the function
-----a.pass "Ankeny" into the function