How do you extend classes
Code snippet:
const circle = {
radius: 20,
diameter() {
return this.radius * 2;
},
perimeter: () => 2 * Math.PI * this.radius
};



How do you extend classes Code snippet: const circle = { radius: 20, diameter() { retur..

Answer / hrpatelsoft@gmail.com

40 and NaN

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

Can you write a random integers function to print integers with in a range?

1 Answers  


What is scope variable in javascript?

0 Answers  


How to use "join()" to create a string from an array using javascript?

0 Answers  


What are anonymous functions in Javascript?

0 Answers  


What is a method in javascript?

0 Answers  


How to define a anonymous function?

0 Answers  


Explain the terms synchronous and asynchronous code?

0 Answers  


What are the Advantages and Disadvantages of JavaScript?

0 Answers  


how to run java script program

1 Answers  


What is "strict mode" and how is it used in JavaScript?

0 Answers  


How do I enable cookies safari?

0 Answers  


What is console.log()?

0 Answers  


Categories