1//pi declare pi= MATH.PI
2var pi = MATH.PI;
3//console
4console.log(pi);
5//screen
6document.write(pi);
1function calculateCircumference(radius) {
2 return 2 * Math.PI * radius;
3}
4
5console.log(Math.PI);
6// expected output: 3.141592653589793
7
8console.log(calculateCircumference(10));
9// expected output: 62.83185307179586
10