Quick snippet to find a string within a string in JavaScript: –

var question = "ques_test";
if(question.includes("ques_"))
{
    console.log("Question Found");
}