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

What are the data types supported by javascript?

0 Answers  


Write a javascript program to make a simple calculator

11 Answers   Anand Group, TCS,


What is the difference between remove() and removeChild()?

0 Answers  


What is a name function in javascript & how to define it?

0 Answers  


How to encode and decode a url in javascript?

0 Answers  






Can you put javascript in html?

0 Answers  


What is null variable?

0 Answers  


What are the five data types?

0 Answers  


What boolean operators does JavaScript support?

5 Answers   Aptech, HCL, Satyam,


How to go next field without filling the text? Which function should we use?

4 Answers  


Explain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any?

0 Answers  


How to add/remove properties to object dynamically in javascript?

0 Answers  


Categories