| 1 |
'use strict' |
| 2 |
|
| 3 |
class Yarsay { |
| 4 |
constructor() { |
| 5 |
console.log('sup') |
| 6 |
} |
| 7 |
|
| 8 |
hit() { |
| 9 |
console.log('do not hit') |
| 10 |
let miss = () => { |
| 11 |
console.log('do not hit') |
| 12 |
} |
| 13 |
} |
| 14 |
|
| 15 |
miss() { |
| 16 |
let miss = () => { |
| 17 |
console.log('do not hit') |
| 18 |
} |
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
let y = new Yarsay() |
| 23 |
y.hit() |