logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What are Math Constants and Functions using JavaScript?


  • Correct Answer
  • Math object has two constant : MathPI and MathE Math object has following functions: - Mathabs(val1); It will give absolute value of val1 - Mathmax(val1,val2); This fuction will return maximum value from val1 and val2 - Mathrandom(); This function will return a random number between 0 and 1 - Mathfloor(val1) This function will returns decimal value of val1 


  • Technology problems


    Search Results


    • 1. How to create arrays in JavaScript?
    • Discuss
    • 2. How to read and write a file using javascript?
    • Discuss
    • 3. What does isNaN function do?
    • Discuss
    • 4. What are windows object and navigator object in JavaScript?
    • Discuss
    • 5. What is decodeURI(), encodeURI() in JavaScript?
    • Discuss
    • 6. What is Shift() method in Javascript?
    • Discuss
    • 7. Explain VBScript in detail.
    • Discuss
    • 8. .What are the different types of environments available in the web?
    • Discuss
    • 9. What is website?
    • Discuss
    • 10. What is web portal?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment