Methods Built in - jpjohnsonjr/learning-notes GitHub Wiki

Methods calculate new information as needed. When built-in methods are called on an instance, they perform actions that generate an output. For example:

  • console.log('Hello'.toUpperCase()) will change the word "Hello" to "HELLO".
  • .startsWith('Hey'.startsWith('H') returns true

The JavaScript documentation provides a list of built-in string methods.

Return to Introduction-to-Javascript.