Sum numbers

PHOTO EMBED

Thu Apr 29 2021 17:26:50 GMT+0000 (UTC)

Saved by @bilgehanevren #ftp

let sum = 0; 
while (true) {
    let value = +prompt("Enter the number", '');
    if (!value) {
        break
    }
    sum += value;
}
console.log('Sum:',+ sum)
content_copyCOPY