What are Math Constants and Functions using JavaScript?
Submitted by: Administrator► Math object has two constant : Math.PI and Math.E
► Math object has following functions :
Math.abs(val1); :It will give absolute value of val1.
Math.max(val1,val2); :This fuction will return maximum value from val1 and val2.
Math.random(); :This function will return a random number between 0 and 1.
Math.floor(val1) :This function will returns decimal value of val1.
Submitted by:
► Math object has following functions :
Math.abs(val1); :It will give absolute value of val1.
Math.max(val1,val2); :This fuction will return maximum value from val1 and val2.
Math.random(); :This function will return a random number between 0 and 1.
Math.floor(val1) :This function will returns decimal value of val1.
Submitted by:
Read Online Expert Developer JavaScript Job Interview Questions And Answers
Top Expert Developer JavaScript Questions
☺ | Mention what is the disadvantage of using innerHTML in JavaScript? |
☺ | Which keyword is used to print the text in the screen? |
☺ | Why it is not advised to use innerHTML in JavaScript? |
☺ | Explain the concept of unobtrusive JavaScript? |
☺ | How are JavaScript and ECMA Script related? |
Top Scripting language Categories
☺ | AngularJS Interview Questions. |
☺ | Ext-JS Interview Questions. |
☺ | Dojo Interview Questions. |
☺ | Expert Developer JavaScript Interview Questions. |
☺ | jQuery Mobile Interview Questions. |