Here as we can see that property of the object car, is going to store the string as “Audi” and it can be accessed with car.name.
sayModel is a method i.e, a function of the object and it can be accessed with car.sayModel().
It can be noticed that sayModel is just a function which use ().
Parameters: Here nothing is as a parameter because of Math.LOG2E is not a function but it is a property.
Return Values: It simply return the value of base 2 logarithm of e.
Input : Math.LOG2E Output:1.4426950408889634
Explanation: Here simply value of base 2 logarithm of e is shown as output.
Error: Math.LOG2E is not a function
Application: Whenever we need to find the value of base 2 logarithm of e that time we take the help of this property.In mathemaatics it needed a lot.
- Google Chrome
- Internet Explorer
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.