How do you remove the LAST character of a string if it is a question mark?

preview_player
Показать описание
How do you remove the LAST character of a string if it is a question mark?
#javascript #questionmark #stringfunctions

***SAMPLE FUNCTION:
function questMark(s){
}
// output: test
// output: test??
// output: ?test

#shorts #Youtubeshorts #viral #subscribe #shortsvideo #viralshorts #reels #trending
Рекомендации по теме