<div id="outer"></div>
<script>
var arr = [], addThis = true;
function Person(name,surname,age) {
this.name = name;
this.surname = surname;
this.age = age;
};
while (addThis) {
var str1 = prompt('Введите имя', 'Name');
if (!str1) break;
var str2 = prompt('Введите фамилию', 'Surname');
var str3 = +prompt('Введите возраст', 0);
addThis = str1 && str2 && str3;
if (addThis) arr.push(new Person(str1,str2,str3));
};
var str = '<table><tr><td>Имя</td><td>Фамилия</td><td>Возраст</td></tr>';
for (var i = 0; i < arr.length; i++) str += '<tr><td>' + arr[i].name + '</td><td>' + arr[i].surname + '</td><td>' + arr[i].age + '</td></tr>';
str += '</table>';
document.getElementById('outer').innerHTML = str;
</script>