Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

substring JavaScript

//substring() is similar to slice().
//The difference is that start and end values less than 0 are treated as 0 in substring()

let str = "Apple, Banana, Kiwi";
let part = str.substring(7, 13);

// >> Banana

//if you find this answer is useful ,
//upvote ⇑⇑ , so can the others benefit also . @mohammad alshraideh ( ͡~ ͜ʖ ͡°)
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #substring #JavaScript
ADD COMMENT
Topic
Name
3+1 =