I’m having issues with the passing criteria for this challenge.
There is obviously a
$ in my regex, but the criteria, “You should search for
"caboose" with the dollar sign
$ anchor in your regex.” is not allowing me to pass.
The code so far
let caboose = "The last car on a train is the caboose"; let lastRegex = /(caboose)$/; // Change this line let result = lastRegex.test(caboose); //alert(result)
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.