July 13, 2023
- Declare two variable
- Initialize two variable with value of array
b = a.includes("Python")
IndexOf()method returns the index value of the array if it is found in the given array and returns -1 if it is not found.
- The value of
bvariable is displayed with the help of console.log inbuilt function
by : Suhel Akhtar