Regular Expressions - Match Ending String Patterns - Free Code Camp

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thank you Mr. Ian I always refer to it as the dollar sign symbol
let caboose = "The last car on a train is the caboose";
let lastRegex = /caboose$/;
let result = lastRegex.test(caboose);
console.log(result);

zken