Skip to content

Instantly share code, notes, and snippets.

View NicklausBrain's full-sized avatar
:octocat:
At work

Mykola Mozghovyi NicklausBrain

:octocat:
At work
View GitHub Profile
@zeusdeux
zeusdeux / ES5vsES6.js
Last active September 6, 2023 15:03
ES5 inheritance vs ES6 inheritance
/* ES6/ES2015 classes */
class A {
constructor() {
this.a = 10
}
print() {
console.log(this.a, this.b)
}
}