Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 different types of inheritence? Which inheritance is followed in javascript.

0 Answers  


How do I view javascript files in chrome?

0 Answers  


How to setting a cookie with the contents of a textbox?

0 Answers  


What does e mean in javascript?

0 Answers  


Can we create buttons in JavaScript ? if yes how? pls provide sample code... Thanks in advance.....

1 Answers   HCL,






What is stack in javascript?

0 Answers  


How to add new elements dynamically?

0 Answers  


What is an onclick?

0 Answers  


Write a program that inputs a 5-digit integer from the keyboard and prints if the input number is a palindrome or not. A palindrome is a number which has the same digit from either end.

1 Answers  


What is the purpose of 'this' operator in JavaScript?

0 Answers  


What is a frontend framework?

0 Answers  


List out the different ways an HTML element can be accessed in a Javascript code?

0 Answers  


Categories