Debug Modern JavaScript with VSCode. Part of VSCode Course.
npm init -y| class Observable { | |
| constructor() { | |
| this._handlers = [] | |
| } | |
| subscribe(event, handler) { | |
| this._handlers[event] = this._handlers[event] || [] | |
| this._handlers[event].push(handler) | |
| } | |
Debug Modern JavaScript with VSCode. Part of VSCode Course.
npm init -y| abbr | |
| { | |
| border-bottom: 1px dotted #666; | |
| cursor: help; | |
| } | |
| .tooltip | |
| { | |
| position:absolute; | |
| background-color:#eeeefe; |