JavaScript - 조건문 - example1.html
http://opentutorials.org/course/49/18
JavaScript
// 참
if (1 == 1) {
alert('참');
} else {
alert('거짓');
}
// 거짓
if (1 == 2) {
alert('참');
} else {
alert('거짓');
}
// 참
if (1 == 1) {
alert('참');
} else {
alert('거짓');
}
// 거짓
if (1 == 2) {
alert('참');
} else {
alert('거짓');
}