DEV Community

NesNes
NesNes

Posted on

API, String-API

(...)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/Web/JavaScript/Reference/Global_Objects/String?retiredLocale=de

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

https://en.owl.institute/my-account/my-courses/363602/947713/a-veritable-string-potpourri-reference#toc_ref_12.7

Top comments (0)