Match Letters of the Alphabet: Regular Expression

Match Letters of the Alphabet: Regular Expression
0

#1

Tell us what’s happening:

what else should i do?

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.test(alphabetRegex).; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

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


#2

Notice you a dot before the simocolon.
Also the method match should be invoked instead of test. (You apply test on regex and you apply match on the text)