Lesson 8 Challenge 1
by nathanesa
JavaScript
var total = 0;
price = prompt('Welcome! Enter your first price:');
while (price != 'STOP') {
total = total + parseInt(price);
alert('The total so far is $' + total + '.');
price = prompt('Enter another price, or enter STOP to finish:')
}
alert('Thank you for using this program.')