about summary refs log tree commit diff
path: root/usth/ICT3.2/prac/2/4.js
blob: 25c2a17dc703050f55c5c69f077abf3ff6c3a7b8 (plain) (blame)
1
2
const S = prompt('Enter five space-separated numbers');
alert(`The largest is ${Math.max(...S.split(' ').map(Number))}.`);