MCQs > IT & Programming > JavaScript > Math.PI returns the mathematical constant π. What standard JavaScript method would return '3.14'?

JavaScript MCQs

Math.PI returns the mathematical constant π. What standard JavaScript method would return "3.14"?

Answer

Correct Answer: Math.PI.toFixed(2)

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it