JSFiddle - React, Tailwind, and code Playground
JavaScript
// 2.1
alert(Math);
// 데이터 타입
alert(typeof Math);
// 생성자
alert(Math.constructor);
try {
alert(new Math());
}
catch (e) {
// error 발생
alert(e.message);
}
alert(Math.max(1, 3));
// 2.1
alert(Math);
// 데이터 타입
alert(typeof Math);
// 생성자
alert(Math.constructor);
try {
alert(new Math());
}
catch (e) {
// error 발생
alert(e.message);
}
alert(Math.max(1, 3));