Skip to content

confusion about properties and methods #1134

Description

@Ooggle

I think there is a little mistake on this file :
2-ui/1-document/01-browser-environment/article.md

line 25 :

// global functions are accessible as properties of window

It should be a methods instead of properties no ?

full code :

function sayHi() {
  alert("Hello");
}

// global functions are accessible as properties of window
window.sayHi();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions