What is the output for the below lines of code? var main_string = "JavaScript is the best Web Programming language"; var sub_string = "Script"; alert(main_string.indexOf(sub_string));
Reveal answer
Fill a bubble to check yourself
What is the output for the below lines of code? var main_string = "JavaScript is the best Web Programming language"; var sub_string = "Script"; alert(main_string.indexOf(sub_string));