Match Letters of the Alphabet "Your regex alphabetRegex should match 35 items."?

Match Letters of the Alphabet "Your regex alphabetRegex should match 35 items."?
0.0 0

#1

Tell us what’s happening:

Your code so far


let quoteSample = "The quick brown fox jumps over the lazy dog.";
let alphabetRegex = /[a-z]/gi; // Change this line
let result = quoteSample.match(alphabetRegex).length; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-letters-of-the-alphabet/

Hello, i don’t understand why the test failed :frowning:


#2

Hi @JeanSebastien

You don’t need to call .length. The test wants the returned array from .match .


#3

Oh yeah… The test is good… Thanks so much i’m stupid :rofl: