What's Math Constants and Functions using JavaScript?
Submitted by: AdministratorThe Math object contains useful constants such as
Math.PI, Math.E
Math also has a zillion helpful functions in JavaScript.
Math.abs(value); //absolute value
Math.max(value1, value2); //find the largest
Math.random() //generate a decimal number between 0 and 1
Math.floor(Math.random()*101) //generate a decimal number between 0 and 100
Submitted by: Administrator
Math.PI, Math.E
Math also has a zillion helpful functions in JavaScript.
Math.abs(value); //absolute value
Math.max(value1, value2); //find the largest
Math.random() //generate a decimal number between 0 and 1
Math.floor(Math.random()*101) //generate a decimal number between 0 and 100
Submitted by: Administrator
Read Online JavaScript Job Interview Questions And Answers
Top JavaScript Questions
☺ | How to force a page to go to another page using JavaScript? |
☺ | How to make elements invisible? |
☺ | How to create a popup warning box? |
☺ | What looping structures are there in JavaScript? |
☺ | What is the difference between an alert box and a confirmation box? |
Top Top World Wide Web Categories
☺ | Cascading Style Sheet CSS Interview Questions. |
☺ | HTML5 Interview Questions. |
☺ | Basic Internet Interview Questions. |
☺ | Domain Name System (DNS) Interview Questions. |
☺ | JavaScript Interview Questions. |