• @[email protected]
    link
    fedilink
    49 days ago

    Not much experience, but quickly learned .bind() in JS after it switched me to window instead of object.

    • @[email protected]
      link
      fedilink
      English
      28 days ago

      The key is to not reassign function names to local variables.

      const print = obj.toString
      print() // gives you a bad time