CIW JavaScript Specialist Questions and Answers
Geraldine is creating a custom object to store user account data on her Web site. She has written the following code it is not working properly. What change should she make to enable the script to run correctly?
Consider the following code:
Which of the following is true based on the above code?
Which of the following is a benefit of using a predefined library, such as JQuery?
The same origin policy was introduced at the same time as HTML5 to limit location changes in browser windows that are using frames. Given this policy which of the following would be a valid new location of a frame on the Web site http corn?
A)
B)
C)
D)
Considering the following code:
Var 1 ;
For (I = 1; I < 10; I ++)
What part of the code fragment initializes the counter variable?
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
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?
Scarlet has the following code in her script:
Var namesArr =[‘’Joseph’,’ Charlotte’’, ‘’Nicole’’];
She wants to add the name Hank to the end of the array so that its length is 4. What code should she use?