Indexof(), if the given value is not in the string / array it will return what?



Indexof(), if the given value is not in the string / array it will return what?..

Answer / Shaji Najeev Siddiki

If the `indexOf()` method is used to search for a value that is not present in an Array or String, it will return -1.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

In angular, describe how will you set, get and clear cookies?

1 Answers  


What is router outlet in angular?

1 Answers  


What do you mean by $rootscope in angularjs?

1 Answers  


What is isolated scope in angularjs?

1 Answers  


What is the difference between structural directive and attribute directive in angular 7?

1 Answers  


Is angular asynchronous?

1 Answers  


What are differences between angular 2 and angular 1?

1 Answers  


What are the advantages of angular 2 ?

1 Answers  


Explain order by filter angularjs?

1 Answers  


How can the spa be implemented with angular?

1 Answers  


What is the difference between $parse and $eval?

1 Answers  


What is an isolated scope?

1 Answers  


Categories