Write code in the body of the piFunc function that will get the number Pi from the Math object and round it up to two decimal places using the method of the Math object. The result of the calculation must be returned by the piFunc function.
Math methods
Pi number
Report a typo
Write a program in JavaScript
function piFunc(){
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.