Skip to main content

Command Palette

Search for a command to run...

JS Methods, Arrays, Objects

Updated
•1 min read•View as Markdown

1.

Properties that contain functions are generally called methods of the value they belong to, as in “toUpperCase is a method of a string”.

      let doh = "Doh";
      console.log(typeof doh.toUpperCase);
      // → function
      console.log(doh.toUpperCase());
      // → DOH