생활코딩 - JavaScript 수업 - Math example3.html

http://opentutorials.org/course/49/25

by egoing

JavaScript

// 원주율
var x = Math.PI;
alert(x);

// 제곱근
var y = Math.sqrt(16);
alert(y);

// 최소값
alert(Math.min(1,4));

// 최대값
alert(Math.max(1,4));