From 8d150d44dbc7f3d7fcb3057cede50c27c33609be Mon Sep 17 00:00:00 2001 From: Aman Bangad Date: Mon, 5 Jun 2017 09:59:09 -0400 Subject: [PATCH] Update article.md The old code doesn't work. Is this what you wanted to show? --- 2-ui/1-document/01-browser-environment/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/01-browser-environment/article.md b/2-ui/1-document/01-browser-environment/article.md index 5f6910dc94..ffbc5bc1e4 100644 --- a/2-ui/1-document/01-browser-environment/article.md +++ b/2-ui/1-document/01-browser-environment/article.md @@ -25,7 +25,7 @@ function sayHi() { } // global functions are accessible as properties of window -alert(window.sayHi); +window.sayHi(); ``` And here we use it as a browser window, to see the window height: