单项选择题
A.返回"" B.返回"na" C.返回"an" D.报错(RangeError)
repeat方法描述正确的是()A.hello’.repeat(2)//"hellohello"B.na’.r...
单项选择题repeat方法描述正确的是()
A.hello’.repeat(2)//"hellohello" B.na’.repeat(0)//"na" C.na’.repeat(2.9)//"nanana" D.na’.repeat(Infinity)//"nana......"
x’.repeat(3)返回xxx。
判断题x’.repeat(3)返回xxx。
endsWith():返回布尔值,表示参数字符串是否在原字符串的尾部。
判断题endsWith():返回布尔值,表示参数字符串是否在原字符串的尾部。