ES6 String Interpolation

Javascript code posted
created at 23 Jun 10:37

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
class Simple {
  foo() {
    this.data.append(`
       <div id="foo">
         ${1 + 1}
       </div>
    `);
  }

  bar() {
    return 42;
  }
}
157 Bytes in 2 ms with coderay