Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Cat {
- constructor () {
- this.contextProperty = console.log(this)
- }
- contextFunction () {
- console.log(this)
- }
- }
- let myCat = new Cat()
- myCat.contextProperty
- myCat.contextFunction()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement