Match Beginning String Patterns2

Tell us what’s happening:

Please can you help me I can do that:

Your regex should search for “Cal” with a capital letter.
Your code so far


let rickyAndCal = "Cal and Ricky both like racing.";
let calRegex = /and Ricky both like racing/; // Change this line=
let result = calRegex.test(rickyAndCal);

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-beginning-string-patterns

6 posts were merged into an existing topic: Match Beginning String Patterns1