How to search for a string inside a string in JavaScript?
Originally posted here!
To search for a string inside another string, you can use the includes() method on the string in JavaScript.
Let's say you have a string called Hello ๐, How are you?
// a string
const str = "Hello ๐, How are you?";
And now...
melvingeorge-me.hashnode.dev2 min read