Javascript ES6 - is it possible to use/call super class properties or functions without using this keyword in child class
class Parent {
constructor() {
this.strings = 'some string values'
this.utils = 'some util functions'
}
}
class Child extends Parent {
constructor() {
super()
}
login() {
//currently i am using like this to access parent class property or functions
console.log(this.strings.success)
//but i would like to use like this
console.log(strings.success)
}
}