Question: Write a simple JavaScript function named makeLocation with three parameters named city, state, and zipcode. The function should return a String that contains the city,
Write a simple JavaScript function named makeLocation with three parameters named city, state, and zipcode. The function should return a String that contains the city, a comma and a space, the state, a space, and the zipcode. For example, if the function were called like this:
var region = makeLocation("Rexburg", "Idaho", "83440"); it would return "Rexburg, Idaho 83440" without the double quotes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
