Question:What will be the output of the following code?let str="Cricket is Proud"; document.write(str.substring(4,7))
let str="Cricket is Proud"; document.write(str.substring(4,7))
A et B ket C ket is D cket
+ AnswerB
+ ExplanationPrototype: string substring(fromIndex,toIndex) This function is used to copy part of a string.
+ Report