Fine tuning the program :D Victory!


#1


https://www.codecademy.com/en/courses/javascript-beginner-en-XEDZA/0/7?curriculum_id=506324b3a7dffd00020bf661


/*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");
}
else{
    console.log(hits);
}


#2

@bissekelejnr,
And here some ways to find the index of each occurence
http://stackoverflow.com/questions/3410464/how-to-find-indices-of-all-occurrences-of-one-string-in-another-in-javascript


#3

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