made with esnextbin
Created
May 3, 2016 23:56
-
-
Save mauriciopoppe/87892ce1aac47ec0ff90540d0c546345 to your computer and use it in GitHub Desktop.
esnextbin sketch
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ESNextbin Sketch</title> | |
<!-- put additional styles and scripts here --> | |
</head> | |
<body> | |
<!-- put markup and other contents here --> | |
</body> | |
</html> |
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 bob = { | |
_name: "Bob", | |
_friends: ["Pete", "Joe", "Larry"], | |
printFriends() { | |
this._friends.forEach(f => | |
console.log(this._name + " knows " + f)); | |
} | |
} | |
bob.printFriends() |
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
{ | |
"name": "esnextbin-sketch", | |
"version": "0.0.0" | |
} |
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
"use strict"; | |
var bob = { | |
_name: "Bob", | |
_friends: ["Pete", "Joe", "Larry"], | |
printFriends: function printFriends() { | |
var _this = this; | |
this._friends.forEach(function (f) { | |
return console.log(_this._name + " knows " + f); | |
}); | |
} | |
}; | |
bob.printFriends(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment