もう100回以上忘れては調べる、をやっている気がしています。あらためて見てみると c と同じなんですね。(演算子はちょっと違う)
const myadd = "Shinjuku";
if (myadd === "Setagaya") {
console.log("Setagaya");
} else if (myadd === "Suginami") {
console.log("Suginami");
} else {
console.log("Other");
}
Go to list of users who liked
More than 1 year has passed since last update.
もう100回以上忘れては調べる、をやっている気がしています。あらためて見てみると c と同じなんですね。(演算子はちょっと違う)
const myadd = "Shinjuku";
if (myadd === "Setagaya") {
console.log("Setagaya");
} else if (myadd === "Suginami") {
console.log("Suginami");
} else {
console.log("Other");
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked