made with esnextbin
Created
October 17, 2016 16:18
-
-
Save aledoroshenko/b83969a1a05982f5af2bd2335686fa8f 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
const obj = { | |
a: 'test', | |
getPropA: function() { | |
return this.a | |
} | |
} | |
const fn = getPropA; | |
console.log(obj.getPropA()); | |
console.log(fn()) |
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 obj = { | |
a: 'test', | |
getPropA: function getPropA() { | |
return this.a; | |
} | |
}; | |
var fn = getPropA; | |
console.log(obj.getPropA()); | |
console.log(fn()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment