JavaScript練習問題 配列の検索
配列に「りんご」が含まれているか確認するメソッドを選択してください。
進捗: 0/1
let fruits = ["りんご", "バナナ", "みかん"];
if (
) {
console.log("りんごがあります!");
} else {
console.log("りんごはありません...");
}
利用可能なタグ
fruits === "りんご"
fruits[0] === "りんご"
fruits.includes("りんご")
fruits.search("りんご")