Answers for "how to use string endswith"

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

Browse Popular Code Answers by Language