Advertisement
TZinovieva

Substring JS Fundamentals

Mar 6th, 2023
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function substring(string, startIndex, count) {
  2.     let sub = string.substring(startIndex, startIndex + count);
  3.     console.log(sub);
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement