16 Oct How to check if one string contains another substring in JavaScript? By alinouman javascript, es6 0 Comments In es6 we could use include code . For eg console.log("potato".includes("to")); //true Share this post Author alinouman