[JavaScript]for文で配列の値を比較するサンプル
書式
配列変数A == 配列変数B
使用例
<script> const cftA = ["A01", "B02", "C03"]; const cftB = ["A01", "B02", "C03"]; if (cftA == cftB) { console.log("110"); } else { console.log("120"); } </script>
実行結果
120
Coding Changes the World
書式
配列変数A == 配列変数B
使用例
<script> const cftA = ["A01", "B02", "C03"]; const cftB = ["A01", "B02", "C03"]; if (cftA == cftB) { console.log("110"); } else { console.log("120"); } </script>
実行結果
120