Multiple Choice Question (MCQ)
Question:
What is the output of the following javascript code?
var name = 'Kanya Kumari' ;
var x = name.substr(8,2);
document.write(x);
A.
um
B.
ma
C.
ar
D.
Ku
Correct Answer: ma