같은 if문 안에서 블록 문과 블록 없는 문을 섞어 쓰지 말 것
var funds = 10; if (funds > 1) { // 블록문 console.log("There's money left!"); console.log("That means keep playing"); } else // 블록 없는 문 console.log("I'm broke! Time to quit.");
Last updated 6 years ago