分析下面的javaScript代码段,输出结果是( )var mystring=”I am a good student”;a=mystring.indexOf(“good”);document.write(a); A.

5 B.

6 C.

7 D.

8