Assessment 2: Function to return a value (25%)




Rate this product

Assessment 2: Write a function to return a value (25%)

Students will have to write a function to accept a parameter, and return
a value based on the contents of the parameter sent in.


Using an HTML file, use the <script block at the top of the page to write a
function that will evaluate the incoming parameter and return a different value
based on that parameter.

Please refer to the rubric at the end of this document for evaluation details.

• Function and variables should be named something meaningful
• The evaluation of the parameter coming in and its resulting value should make
• Receive the returned value on a line of JavaScript outside of the function

• Upload to D2L Dropbox folder labeled “Assessment 2: Write a Function”