match end characters in a string || JavaScript challenges #Shorts

preview_player
Показать описание
hi developers,

match end characters in a string

# These may be helpful to you

make sure to subscribe to our channel, to get regular updates and get content like this.

Рекомендации по теме
Комментарии
Автор

hi developers,

Othet Methods

const matchEndChar = (str1, str2)=>{
let sliced = str1.slice(str1.length - str2.length);
if(sliced === str2 ){
return true
}else{
return false
}
}

, "Dev"))

lonelydev