• + 0 comments

    My easy solutiion for the beginners PI should be in capital in the whole code dont make the mistake. I made it Once I chnaged it to Uppercase it fixed the error. const PI = Math.PI; const r = readLine(); const area = PI*r*r; console.log(area); const perimeter = 2 * PI * r; console.log(perimeter);