The indexOf method in JavaScript arrays is explained
![](https://www.7ix.net/wp-content/uploads/2021/06/city-6220689_640.jpg)
Recently the project encountered a small problem code I will simplify into a small example to show you. The last thing you need to do is to look at it with care, and children with a solid foundation can jump…