Did you know that there are methods you can use on both JavaScript strings and arrays? Let’s take a look at these methods and see the similarities and differences between them! — Introduction While it’s impossible to know every single method in JavaScript, it’s also nice to know that there are some methods that can be used on more than one data type. Specifically for strings and arrays, these methods are concat, indexOf, and slice. In this article, we will understand what each…