Answers for "get substring after a character javascript"

0

javascript substring after character

// function you can use:
function getSecondPart(str) {
    return str.split('-')[1];
}
// use the function:
alert(getSecondPart("sometext-20202"));
Posted by: Guest on February-12-2021

Code answers related to "get substring after a character javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language