Answers for "extend static class javascript"

1

extend static class javascript

class A {
    static price = '8.99 PLN';
}

class B extends A {
   static price = '6.99 PLN';
}

console.log(A.price); //➞ '8.99 PLN'
console.log(B.price); //➞ '6.99 PLN'
Posted by: Guest on May-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language