HOTSPOT
You test a webpage that contains the following JavaScript code:
The webpage also contains the following markup:
You need to ascertain how the webpage responds when the user enters characters and then
clicks the add and divide buttons.
For each statement in the table, select Yes if the action causes the webpage to behave as
described. Select No if it does not. Make only one selection in each column.
addition ( + ) concatenates strings returned by .val() .
http://www.w3schools.com/js/tryit.asp?filename=tryjs_oper_concat5
division by 0 returns infinity.
Answer above is correct.
division by 0 returns infinity and NaN and also error.
Answer above is not correct, the second option is also Yes –> unhandled JS runs.
Answer is correct: https://jsfiddle.net/9ne30hhy/.
+1 for colins
shouldn’t third row be No. The error is not unhandled – it is a custome error.