| 1 |
import {x, y} as p from 'point'; |
| 2 |
const ANSWER = 42; |
| 3 |
|
| 4 |
class Car extends Vehicle { |
| 5 |
constructor(speed, cost) { |
| 6 |
super(speed); |
| 7 |
|
| 8 |
var c = Symbol('cost'); |
| 9 |
this[c] = cost; |
| 10 |
|
| 11 |
this.intro = `This is a car runs at |
| 12 |
${speed}.`; |
| 13 |
} |
| 14 |
} |
| 15 |
|
| 16 |
for (let num of [1, 2, 3]) { |
| 17 |
console.log(num + 0b111110111); |
| 18 |
} |
| 19 |
|
| 20 |
function $initHighlight(block, flags) { |
| 21 |
try { |
| 22 |
if (block.className.search(/\bno\-highlight\b/) != -1) |
| 23 |
return processBlock(block.function, true, 0x0F) + ' class=""'; |
| 24 |
} catch (e) { |
| 25 |
/* handle exception */ |
| 26 |
var e4x = |
| 27 |
<div>Example |
| 28 |
<p>1234</p></div>; |
| 29 |
} |
| 30 |
for (var i = 0 / 2; i < classes.length; i++) { // "0 / 2" should not be parsed as regexp |
| 31 |
if (checkCondition(classes[i]) === undefined) |
| 32 |
return /\d+[\s/]/g; |
| 33 |
} |
| 34 |
console.log(Array.every(classes, Boolean)); |
| 35 |
} |
| 36 |
|
| 37 |
export $initHighlight; |