(...)the JS String API provides you with a few functions(...)
https://en.owl.institute/my-account/my-courses/363602/947713/a-veritable-string-potpourri#toc_ref_12
Strings are useful for holding data that can be represented in text form. Some of the most-used operations on strings are to check their length, to build and concatenate them using the + and += string operators, checking for the existence or location of substrings with the indexOf() method, or extracting substrings with the substring() method.
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Useful_string_methods
String-API functions:
- charAt
- includes
- startsWith
- endsWith -indexOf
- lastIndexOf
- repeat
- substr
- toLowerCase
- trim
Top comments (0)