Table of contents Home page
Execute this code
var f = new Function("deg", "return deg * Math.PI / 180") var d = prompt("Enter the value of an angle in degrees.") if (d != null && !isNaN(d)) { alert(d + "° is equal to " + f(d) + " rad.") }