单项选择题

下列程序的输出是()。/a/g.exec(’abca’)console.log(/a/g.lastIndex);

A.0
B.1
C.null
D.undefined