Fine tuning the program :D Victory!


/*jshint multistr:true */

var text = "bisscay is bisscay in a bisscay world so begonefn";
var myName = /bisscay/g;
var hits = [ ];

   hits = text.match(myName);
if(hits.length === 0){
    console.log("Your name wasn't found");


And here some ways to find the index of each occurence


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.