Using letter Pi(π) in JavaScript

added by DotNetKicks
3/10/2017 1:35:54 PM

2 Kicks, 291 Views

Today I was doing some math in JavaScript. I needed a simple calculation from degrees to radians. Of course, I didn't remember the formula. I copied it from Rapid Tables but I forgot to replace π char. Unexpectedly I received a normal error: Uncaught ReferenceError: π is not defined What?