单项选择题

分析下面的JavaScript代码段:
var mystring="I am a student";
a=mystring.indexOf("am");
document.write(a);
输出结果是()。


A. 3
B. 4
C. 2
D. 1