Open Emperor01 opened 6 years ago
'use strict';
var question, animals = [];
function fillarr (arr) {
for (var i = 0; ; i++) {
arr[i] = prompt ('input value', ''); question = confirm ('continue to fill the array?'); if (question == false) break;
}
function showarr (arr) {
alert(arr);
fillarr(animals); showarr(animals);
'use strict';
var question, animals = [];
function fillarr (arr) {
for (var i = 0; ; i++) {
}
}
function showarr (arr) {
alert(arr);
}
fillarr(animals); showarr(animals);