PrepAway - Latest Free Exam Questions & Answers

You need to ascertain how the webpage responds when the…

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.
Hot Area:

PrepAway - Latest Free Exam Questions & Answers

Answer:

3 Comments on “You need to ascertain how the webpage responds when the…

    1. maverickcalibre says:

      Answer is correct as you listed above.

      Can be verified in console by typing below code.

      onerror = unhandled;
      function unhandled(msg, url, line){
      alert(‘unhandled exception occurred!!!’)
      };
      alert(‘2’/’0’);




      0



      0
  1. hacker says:

    Question is wrang. to my mind if user enter a symbol into textbox 2 division value must be 2/’a’ not 2/a (because jquery val function returns ‘a’)
    in this case first value is Nan and second throw exception




    3



    0

Leave a Reply