Q. What will be the output of the following JavaScript code?
Code:<script> var string1=[1,2,3]; var string2=[4,5,6,7,8,9,10]; var result=string1.concat(string2); document.writeln(result); </script>
Dear candidates you will find MCQ questions of JavaScript here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
<script> var string1=[1,2,3]; var string2=[4,5,6,7,8,9,10]; var result=string1.concat(string2); document.writeln(result); </script>
<script>
functionprintprops(o)
{
for(var ain o)
console.log(a+": "+ o[a]+"\n");
}
</script>
a.x(g,h);