What will be the output of the following JavaScript code? [code] var val1=[1,2,3]; var val2=[6,7,8]; var result=val1.concat(val2);

What will be the output of the following JavaScript code?
Code:
var val1=[1,2,3];  
var val2=[6,7,8];  
var result=val1.concat(val2);  
document.writeln(result);
A. 1, 2, 3
B. Error
C. 1, 2, 3, 6, 7, 8
D. 123
 

Tìm kiếm

Back
Top