Tell us what’s happening:
Is there a bug with this exercise? My code is the same as the solution code but when I run the test I receive the error Cannot read property ‘length’ of null. When I delete my code and paste the solution code, it passes the test. Again, I did a comparison of the solution code and my code and both are the same. This occurred in the previous lesson as well.
Your code so far
let quoteSample = "Blueberry 3.141592653s are delicious.";
let myRegex = /h-s2-6/ig; // Change this line
let result = quoteSample.match(myRegex); // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-numbers-and-letters-of-the-alphabet