javascript get all characters before a certain one
// say you wanted to collect all the chars before a slash (/).
myString = "12345.67890";
newString = myString.substring(0, myString.indexOf('/'));
console.log(newString);
// returns "12345"
javascript get all characters before a certain one
// say you wanted to collect all the chars before a slash (/).
myString = "12345.67890";
newString = myString.substring(0, myString.indexOf('/'));
console.log(newString);
// returns "12345"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us