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...

What is a path to market for goods and services?

A. Channel B. Market Plan C. Pathway D. Segment

Business

A nuisance is an unreasonable interference with someone else's use and enjoyment of his or her land

Indicate whether the statement is true or false

Business