Question 1

Consider the following code:

What text will display in the alert dialog box?
  • Question 2

    Consider the following code:

    What is the result of running this script in a Web browser?
  • Question 3

    Consider the following code:

    What change if any needs to be made for a "Thank you" message to appear when the checkout page is loaded?
  • Question 4

    Consider this source code:

    Giam needs to write a script to access the first element in the source code. What code should he use?
  • Question 5

    Which of the following comparison statement will return true?
    A)
    X=10;
    Y=11;
    y--;
    x==y
    B)
    X=10;
    Y=11;
    Y++;
    x==y'
    C)
    X=11;
    Y=10;
    y--;
    x==y;
    D)
    X=11;
    Y=10;
    y-= 1;
    x==y