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

Показать описание
#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.
#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.