Are you ready?
1 questions to solve.
- This quiz goes to full-screen once you press the Start button, or any Next button after exiting the quiz window.
- At the end of the quiz, you are able to review all the questions that you answered wrong and see their explanations.
var str = "Hello\n World";
var str = "Hello World"; str = "F";
strto lowercase characters?
var str = "I love cats!"; console.log(str.indexOf("cat"));
"cat"comes at index 7 in str - hence we get 7 returned by
str.indexOf("cat"). Refer to Strings Properties and Methods for more info.
var str = "Twice a day"; var index = str.indexOf("a"); var index2 = str.lastIndexOf("a"); console.log(str.indexOf("a", index + 1) === index2);
"Pizza"from the string
str = "Pizza Lover"?
str.charAt(1)return for the string
str = "Hello"?
stris equal to the string "Mango Apple Orange". What will
split()is called on a string without an argument, it returns an array with exactly one element that is the string itself. Refer to Strings Properties and Methods for more info.