What will the browser display if the following script is executed?
< SCRIPT LANGUAGE = "JavaScript" >
var theArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ];
modifyArray( theArray[ 3 ] );
document.write( theArray.join( " " ) );
function modifyArray( i ) {
i = 11;
}
a) Nothing, the browser will generate an error.
b) 1 2 3 4 5 6 7 8 9
c) 1 2 11 4 5 6 7 8 9
d) 1 2 3 11 5 6 7 8 9
Ans: (b)
You might also like to view...
After dealing with a difficult customer, put it out of your mind immediately
Indicate whether the statement is true or false
Historical costs include all of the following except:
a. acquisition costs for assets b. net realizable values for assets. c. adjusted acquisition costs for assets. d. initial present value for assets and liabilities
Which of the following costs is most likely to remain fixed within a relevant range?
A) Indirect labor B) Property taxes C) Operating supplies D) Direct labor
Of the major consumer promotion tools, which is the most effective for introducing a new product?
A) sponsorships B) sampling C) loyalty programs D) lobbying E) advertising