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 organize your JavaScript code?
How dhtml is used in javascript?
What are the different objects used in javascripts?
What is the difference between sessionstate and viewstate?
What is require in javascript?
How can you detect the client operating system using javascript?
What is eager initialization in java?
What is the requirement of debugging in javascript?
Why do we need hoisting in javascript?
How to delete an array entry using javascript?
What are disadvantages of using javascript?
How to create arrays in javascript?
Is javascript the future?
Define closure.
What do you understand by this keyword in javascript?