Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript substring when we choose negative and zero number

var string = "WelcomeToSofthunt.netTutorialWebsite";
one = string.substring(-1, 7)
two = string.substring(7.3, 9)
three = string.substring(9,21)
four = string.substring(21,29)
five = string.substring(29,36)
six = string.substring(-34)
 
document.write(one);
document.write(two);
document.write(three);
document.write(four);
document.write(five);
document.write(six);
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #JavaScript #substring #choose #negative #number
ADD COMMENT
Topic
Name
2+7 =