How do you extend classes
Code snippet:
const circle = {
radius: 20,
diameter() {
return this.radius * 2;
},
perimeter: () => 2 * Math.PI * this.radius
};
Post New Answer View All Answers
How do you clear an array in javascript?
How to capture the Image width and height using QTP script ? Kindly answer plz.... Thanx in adavance...
Why do you need javascript?
What is called variable?
In a java script, what is the difference between "==" and "===" operator?
What are the main features of javascript?
What are the four basic data structures in javascript?
How are object properties assigned?
What is a closure javascript?
What does the "Access is Denied" IE error mean?
What is the use of anonymous function in javascript?
What are the difference between undefined and not defined in javascript?
What is lambda in programming?
What is this? Var myarray = [[[]]];
What e means?