回答編集履歴
1
ボタン2つで結果を確認できるように修正しました
answer
CHANGED
@@ -9,7 +9,8 @@
|
|
9
9
|
<title>サンプル</title>
|
10
10
|
</head>
|
11
11
|
<body>
|
12
|
+
<input type="button" value="arraytest1のボタン" onclick="testFunc('aa')"><br>
|
12
|
-
<input type="button" value="
|
13
|
+
<input type="button" value="arraytest2のボタン" onclick="testFunc('bb')">
|
13
14
|
<script>
|
14
15
|
function testFunc(str){
|
15
16
|
const arraytest1 = ["りんご", "バナナ"];
|