java questions.pdf
Document Details
Uploaded by EnterprisingAcademicArt
Full Transcript
101. What will happen if we use the "join()" method along with the "reverse()" method? A. It will reverse and concatenates the elements of the array B. It will reverse the element and store the elements in the same array c. It will just reverse the element of the array d. It will sto...
101. What will happen if we use the "join()" method along with the "reverse()" method? A. It will reverse and concatenates the elements of the array B. It will reverse the element and store the elements in the same array c. It will just reverse the element of the array d. It will store the elements of the specified array in the normal order 102. What will be the output of the following given code of JavaScript? var x1 =[,,,]; var x2 =newArray(10); 0in x1 0in x2 A. true true B. false true C. true false D. false true 103. What will happen if we execute the following piece of code? var arr=[4,3,,1]; for(i=0;i