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
What are the variables in javascript?
Why would you use a sticky session?
What is camelcase in programming?
What would you use javascript for?
How do I use an external javascript file?
What are the scopes of a variable in javascript?
How to write a script for "select" lists using javascript
What is singleton class in javascript? Explain
Are java and javascript same?
To put a "close window" link on a page ?
What is memory leak in javascript?
Is Exception handling possible in Javascript?
What is the use of a weakmap object in javascript?
What is the use of anonymous function in javascript?
just for testing