Answers for "check if string ends with ."

1

check if string ends with .

var str = "Hello world, welcome to the universe.";
var n = str.endsWith("universe.");
Posted by: Guest on May-01-2021

Code answers related to "check if string ends with ."

Browse Popular Code Answers by Language