extend static class javascript

Solutions on MaxInterview for extend static class javascript by the best coders in the world

showing results for - "extend static class javascript"
Johanna
26 Feb 2016
1class A {
2    static price = '8.99 PLN';
3}
4
5class B extends A {
6   static price = '6.99 PLN';
7}
8
9console.log(A.price); //➞ '8.99 PLN'
10console.log(B.price); //➞ '6.99 PLN'