Skip to content

Instantly share code, notes, and snippets.

@lenafaure lenafaure/this_7.js
Created May 7, 2017

What would you like to do?
var customer = {
firstName: "John",
lastName: "Doe",
greetCustomer: function(){
console.log("Hello again " + this.firstName + " " + this.lastName + "!");
function nestedFunction(){
customer.greetCustomer(); // Prints the window object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.