@panzerdp/

TediousProbableMuskox

ES6

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8459101102514901","path":"main.js","file":{"path":"main.js","content":{"asEncoding":{"base64":"Y2xhc3MgR2FtZSB7CiAgY29uc3RydWN0b3IobmFtZSkgewogICAgdGhpcy5uYW1lID0gbmFtZTsKICB9CgogIGdldE1lc3NhZ2UoKSB7CiAgICByZXR1cm4gYEkgbGlrZSAke3RoaXMubmFtZX0hYDsKICB9Cn0KCmNvbnN0IGRvb20gPSBuZXcgR2FtZSgnRG9vbScpOwpjb25zb2xlLmxvZyhkb29tIGluc3RhbmNlb2YgR2FtZSk7Ly8gPT4gdHJ1ZQpjb25zb2xlLmxvZyhkb29tLm5hbWUpOyAgICAgICAgICAgLy8gPT4gIkRvb20iCmNvbnNvbGUubG9nKGRvb20uZ2V0TWVzc2FnZSgpKTsgICAvLyA9PiAiSSBsaWtlIERvb20hIg=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Game {
  constructor(name) {
    this.name = name;
  }

  getMessage() {
    return `I like ${this.name}!`;
  }
}

const doom = new Game('Doom');
console.log(doom instanceof Game);// => true
console.log(doom.name);           // => "Doom"
console.log(doom.getMessage());   // => "I like Doom!"
Babel Compiler v6.4.4 Copyright (c) 2014-2015 Sebastian McKenzie