What is the primary difference between the search() method and the indexOf() method?
What will be an ideal response?
The search()methodreturns the position of the first instance of the first character of a text string that is passed as an argument.The indexOf() methodreturns the position of the first occurrence of one string in another string.The primary difference between the search() method and the indexOf() method is that you can pass to the indexOf() method a second optional argument that specifies the position in the string where you want to start searching. If the search string is not found, the indexOf() method returns a value of -1.
You might also like to view...
Different animations can be applied to text within a presentation as long as it is the same on each slide
Indicate whether the statement is true or false
Advanced Systems Format containers hold Windows Media Video (WMV) files and are usually identified by .wmv extensions.
Answer the following statement true (T) or false (F)