Javascript Tutorial in Hindi - 19 Inbuilt Array Function indexOf() , lastIndexOf() in Javascript

preview_player
Показать описание
#JavascriptIndexOfFunction
#JavascriptLastIndexOfFunction

#javascriptArrayFunction

In Javascript, if you want to find out any value from the given array, then you can use indexOf() function as well lastIndexOf() function.

indexOf() function is used to find the index of the first occurrence of the search element provided as the argument to the function.

lastIndexOf() function is used to find the index of the last occurrence of the search element provided as the argument.
Рекомендации по теме
visit shbcf.ru