Why does this print out 'bye' instead of 'hello'? According to the inheritance chain as is described in this blog post, I would've thought it would log 'hello'.
http://sporto.github.io/blog/2013/02/22/a-plain-english-guide-to-javascript-prototypes/
class Test {
hello() {
console.log('hello')
}
}
Test.prototype.hello = function(){
console.log('bye')
}
const t = new Test
t.hello()
Test.prototype.helloif you don't want that? What else did you expect to happen with the bye-function?classsyntax works? What do you think does the inheritance chain oftlook like according to the article you read?