adplus-dvertising
frame-decoration

Question

How to find the index of a particular string?

a.

position()

b.

index()

c.

indexOf()

d.

none of the mentioned

Posted under JavaScript

Answer: (c).indexOf()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How to find the index of a particular string?

Similar Questions

Discover Related MCQs

Q. How do you focus a particular part of the HTML page in JavaScript?

Q. Which of the following is the child object of the JavaScript navigator?

Q. Which of the following are the properties of a plug-in entry?

Q. What is the purpose of the mimeTypes property of a plug-in entry?

Q. What is it called when we make a mistake in the script?

Q. Which of the following is the definition for debugging?

Q. Where is the error icon shown in the Internet Explorer?

Q. Where is the error icon option available?

Q. Which of the following is the window that the Firefox sends the error messages to?

Q. What is the procedure to view the console in the Firefox?

Q. What is the other way of calling the Error Console in Firefox?

Q. What kind of error notifications are shown in the console window?

Q. How do we debug a script?

Q. What is the purpose of a JavaScript debugger?

Q. What is a framework?

Q. Which is the function used to loop in an array to view all the values?

Q. Which of the following has a greater benchmark time for looping and JQuery vs core JavaScript in milliseconds?

Q. Which class provides an interface for invoking JavaScript methods and examining JavaScript properties?

Q. What is the purpose of the function eval?

Q. Which of the following has a lesser benchmark time for using JQuery to access DOM versus pure JavaScript in milliseconds?