What would the browser output if the following script is executed?

< SCRIPT LANGUAGE = "JavaScript" >
var array = [ [ 1, 2, 3 ], [ 1, 2, 3 ] ];
for ( var i in array ) {
for ( var j in array[ i ] )
document.write( array[ i ][ j ] + " " );
document.writeln("
");
}
< /SCRIPT >
a) Nothing, the script would generate an error
b) 1 2 3
c) 1 2 3 4 5 6
d) 1 2 3 1 2 3


Ans: (d)

Business

You might also like to view...

To decide the cost of a product, managers use information about past and projected product costing and customer preferences

Indicate whether the statement is true or false

Business

From a(n) ________ point of view, Pepsi might see its competition as Coca-Cola, Dr Pepper, 7UP, and the makers of other soft drink brands. From a(n) ________ point of view, however, the customer really wants "thirst quenching."

A) market; industry B) market; consumer C) industry; competitive D) industry; market E) company's; consumer's

Business

Andrei was accused of stealing office supplies and fired immediately. It would appear that Andrei’s right to _________ was violated.

A. free consent B. due process C. life and safety D. freedom of conscience E. privacy

Business

After making a presentation, you reflect by considering the part you played in the presentation, your approach, what else you might have done, what you have learned about the experience, what questions you have, and what you need to consider as a result. What type of reflection does this describe?

a. emotional reflection b. analytical reflection c. evaluative reflection d. critical reflection

Business