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

How do you organize your JavaScript code?

1150


How dhtml is used in javascript?

1086


What are the different objects used in javascripts?

1004


What is the difference between sessionstate and viewstate?

988


What is require in javascript?

1208


How can you detect the client operating system using javascript?

1336


What is eager initialization in java?

975


What is the requirement of debugging in javascript?

1002


Why do we need hoisting in javascript?

946


How to delete an array entry using javascript?

963


What are disadvantages of using javascript?

1212


How to create arrays in javascript?

1024


Is javascript the future?

1006


Define closure.

967


What do you understand by this keyword in javascript?

915