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)

Business

You might also like to view...

Departments with frequent public contact should be located near the top-level executive offices

Indicate whether the statement is true or false.

Business

Each commodity contract specifies the product, the exchange on which the contract is traded, the size of the contract, the price at which the commodity must be delivered, and the delivery month

Indicate whether the statement is true or false.

Business