Skip to content

confusion about properties and methods #1134

Closed

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();

Activity

  1. iliakan commented on Jul 11, 2019

    @iliakan
    Member

    okay, in js methods is a kind of properties, I'll change this.

  2. Ooggle commented on Jul 11, 2019

    @Ooggle
    Author

    Oh okay, thanks for the clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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