On your final exam, you can expect to be asked a question VERY similar to the one shown here. The scenario will be different, but the types of things you will be asked to do in your JavaScript will be extremely similar. (i.e. Determine if a checkbox or radio button was checked, retrieve a value from a checkbox or radio button). And of course, you should always be prepared to
On your exam, you will be provided with some HTML code (along with an image to show you what the page will look like), and you will be required to write the JavaScript function that make it work.
NOTES:
You WILL be required to determine if a certain checkbox or radio button was checked as shown here.
You may be required to retrieve the value from a checkbox or radio button.
Of course, you should always be prepared to retrieve a value from a text box or select box.
You will NOT be required to worry about decimal places.
You will NOT be required to write the HTML. You will only be required to write the JavaScript function.
Below is what the exam question might look like.
Look at the page shown here:

Below is the relevant HTML code that was used to generate this page.
xWhich exhibit do you wish to see?Regular Exhibit ($10)<input type="radio" name="exhibitChoice" id="radRegular" value="10">Special Exhibit ($15)<input type="radio" name="exhibitChoice" id="radSpecial" value="15">Are you a senior citizen? ($5 off)<input type="checkbox" id="chkSenior">Are you a member of the museum? (10% off)Yes: <input type="radio" name="isMember" id="radMember"><br>No: <input type="radio" name="isMember" id="radNotMember"><input type="button" value="Entry Fee" onclick="calculateAdmission()"><div id="output"></div>
Write a JavaScript function that will calculate the cost of admission to the museum.
Retrieve the initial cost by determining which type of exhibit the visitor wishes to view.
If they are a senior citizen, deduct $5
If they are a member of the museum, deduct 10% off their cost.
Output the amount of the tip to the div section called 'output'.
For example:

In this example, the user has indicated that they wanted to see the special exhibit which makes their initial cost $15. They then indicated that they are a senior citizen, so the cost should be reduced by $5 to make it $10. They then indicate that they are a member of the museum, so the cost should be reduced by 10% (i.e. multiply the cost by 0.9) to leave the end cost as $9.
You must use concatenation. So your ‘output’ section should say something like: Your entry fee is $9.
Note that there is a $ before the cost, and a period at the end of the sentence. This should be present in the output.