scrimba
Learn Regex
Match Ending String Patterns
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Match Ending String Patterns
AboutCommentsNotes
Match Ending String Patterns
Expand for more info
index.js
run
preview
console
let caboose = "The last car on a train is the caboose";
let lastRegex = /change/; // Change this line
let result = lastRegex.test(caboose);
console.log(result);
Console
index.html
-0:44