JS Methods, Arrays, Objects

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