Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript slice()

var string = "WelcomeToSofthunt.netTutorialWebsite";
one = string.slice(0, 7)
two = string.slice(7, 9)
three = string.slice(9,21)
four = string.slice(21,29)
five = string.slice(29,36)
six = string.slice(0)

 
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
ADD COMMENT
Topic
Name
1+3 =