adplus-dvertising
frame-decoration

Question

Which of the following function of String object returns the index within the calling String object of the first occurrence of the specified value?

a.

substr()

b.

search()

c.

lastIndexOf()

d.

indexOf()

Answer: (d).indexOf()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following function of String object returns the index within the calling String object of the first occurrence of the specified value?

Similar Questions

Discover Related MCQs

Q. Which of the following function of String object creates an HTML anchor that is used as a hypertext target?

Q. Which of the following function of String object causes a string to be displayed as struck-out text, as if it were in a strike tag?

Q. Which of the following is true about variable naming conventions in JavaScript?

Q. Which of the following is the correct syntax to redirect a url using JavaScript?

Q. Which built-in method returns the character at the specified index?

Q. Which of the following function of String object returns a number indicating the Unicode value of the character at the given index?

Q. Which of the following function of String object executes the search for a match between a regular expression and a specified string?

Q. Which of the following function of String object returns the calling string value converted to upper case while respecting the current locale?

Q. Which of the following is a valid type of function javascript supports?

Q. How can you get the type of arguments passed to a function?

Q. Which of the following function of Array object removes the first element from an array and returns that element?

Q. ....................... is a built - in JavaScript function which can be used to execute another function after a given time interval.

Q. Java Script entities start with ___________and end with _____________.

Q. Which of the following is a server-side Java Script object?

Q. Javascript is _________ language.

Q. JavaScript is ______ Side Scripting Language.

Q. JavaScript is designed for following purpose -

Q. Cost for Using JavaScript in your HTML is _________ .

Q. JavaScript Code is written inside file having extension __________.

Q. Why JavaScript is called as Lightweight Programming Language ?