Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / hrpatelsoft@gmail.com

40 and NaN

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do I need var in javascript?

960


What is the use of spread operator?

977


What is the use of document object?

920


what is a dataset

2125


How to define a anonymous function?

955


Why global variables are bad javascript?

980


What is array in javascript?

965


Can I open javascript on iphone?

952


Explain the difference between call() and apply()?

1022


java pgm for reads a file(text file) and removes all the spaces then the text and write this back into the same file. e.g: (Input) _______ chennai is fourth biggest city in india. (output) _______ chennaiisfourthbiggestcityinindia.

1992


What would you use javascript for?

912


What does e mean in javascript?

1008


What is the use of decodeuri() and encodeuri()?

985


Can you explain the difference between == and ===?

1105


How to get the last index of a string in javascript?

977