单项选择题

repeat方法描述正确的是()

A.hello’.repeat(2)//"hellohello"
B.na’.repeat(0)//"na"
C.na’.repeat(2.9)//"nanana"
D.na’.repeat(Infinity)//"nana......"