For the next section, we'll start with index 16 and go to index 31. To get "the " with a space, we'll start at 0and end at 4. The API accepts a start index and an end index. We have the expect library from npm loaded onto the page to do our assertions. We're going to turn "The quick brown fox jumps over the lazy dog" into "The fox jumps over dog" by getting rid of "quick", "brown", and "the lazy" from this phrase. There's several ways to substring a string in Javascript.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |