News

JavaScript String slice() method : The slice() method is used to extract the sub-string. The index is starts from 0. To return the string from last position use negative index. start : This is ...
Example: extractString (‘javascript is awesome’, 4, 13) // Should return ‘script is’ extractString (‘hello there’, 0, 0) // Should return ‘hello there’ Hint: google javascript slice, substr, substring ...