C777 (COMPUTER PROGRAMING)
MULTIPLE CHOICE PRACTICE TEST A
EXAM WESTERN GOVERNORS
UNIVERSITY.
Which of the following will correctly call a JavaScript function without
error?
A) my Function("a")
B) my Function (;)
C) var my Function (1,2)
D) initiate my Function (3)
Verified Answer -my Function("a")
Consider the following code:
script
var v1 = "Blue";
function f()
{
var v1 = "Green";
alert (v1);
}
f();
alert(v1);
/script
Category | WGU EXAM |
Comments | 0 |
Rating | |
Sales | 0 |