5.
Assume courseTitle =”Principles in Information Technology andComputation”;
Write a JavaScript statement to find the position of the firstoccurrence of letter ‘o’ in courseTitle.
6.
What is the value of str after the following code segment isexecuted?
var courseTitle =”Principles in Information Technology andComputation”;
var str = courseTitle.substring(14, 25);
7.
What is the value of newStr after the following code segment isexecuted?
var str =”abc”;
var letter = str.charAt(0);
var rest = str.substring(1, str.length);
var newStr = letter;
letter =rest.charAt(0);
rest = rest.substring(1, str.length);
newStr = rest + letter + newStr;
8.The index of the first character of a string named as title is( ). The index of the last character of a string is [ ].
Expert
OR
PayPal Gateway not configured
OR
PayPal Gateway not configured
PayPal Gateway not configured
PayPal Gateway not configured