es6.js 289 B

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