1 2
const S = prompt('Enter five space-separated numbers'); alert(`The largest is ${Math.max(...S.split(' ').map(Number))}.`);