Created
November 11, 2014 20:28
-
-
Save julsfelic/6bb3b184ced14c5c3512 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var name = "Julian"; | |
console.log(name); | |
console.log(window.name); | |
function sayHello(name) { | |
console.log("Hello there, " + name + "!"); | |
} | |
sayHello(name); | |
window.sayHello(window.name); | |
console.log(window); // If you expand the object and scroll towards the bottom | |
// you will see both your variable and function on the | |
// window object! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment