Skip to content

Instantly share code, notes, and snippets.

@aledoroshenko
Created October 17, 2016 16:18
Show Gist options
  • Save aledoroshenko/b83969a1a05982f5af2bd2335686fa8f to your computer and use it in GitHub Desktop.
Save aledoroshenko/b83969a1a05982f5af2bd2335686fa8f to your computer and use it in GitHub Desktop.
esnextbin sketch
<!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>
const obj = {
a: 'test',
getPropA: function() {
return this.a
}
}
const fn = getPropA;
console.log(obj.getPropA());
console.log(fn())
{
"name": "esnextbin-sketch",
"version": "0.0.0"
}
'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