Skip to content

Instantly share code, notes, and snippets.

@voronianski
Created February 15, 2016 14:40
Show Gist options
  • Save voronianski/ad168ed095aeac5ce098 to your computer and use it in GitHub Desktop.
Save voronianski/ad168ed095aeac5ce098 to your computer and use it in GitHub Desktop.
esnextbin sketch
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ESNext Bin Sketch</title>
<!-- put additional styles and scripts here -->
<link href="http://d2v52k3cl9vedd.cloudfront.net/basscss/7.0.4/basscss.min.css" rel="stylesheet">
</head>
<body>
<div id="app"></div>
<!-- put markup and other contents here -->
</body>
</html>
class Foo {
bar = 2
static iha = 'string'
}
const foo = new Foo();
console.log(foo.bar, foo.iha, Foo.bar, Foo.iha);
// 2, undefined, undefined, 'string'
{
"name": "esnextbin-sketch",
"version": "0.0.0",
"dependencies": {
"babel-runtime": "6.3.19"
}
}
'use strict';
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Foo = function Foo() {
(0, _classCallCheck3.default)(this, Foo);
this.bar = 2;
};
Foo.iha = 'string';
var foo = new Foo();
console.log(foo.bar, foo.iha, Foo.bar, Foo.iha);
// 2, undefined, undefined, 'string'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment