Tell us what’s happening:
Your code so far
var test = (function() {
var testString = "There are 3 cats but 4 dogs.";
// Only change code below this line.
var expression = /\d+/gi;
// Only change code above this line.
// We use this function to show you the value of your variable in your output box.
return testString.match(expression).length;
})();(function(){return test;})();
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0
.
Link to the challenge:
https://www.freecodecamp.org/challenges/find-numbers-with-regular-expressions