about summary refs log tree commit diff
path: root/usth/ICT3.2/prac/2/4.js
diff options
context:
space:
mode:
Diffstat (limited to 'usth/ICT3.2/prac/2/4.js')
-rw-r--r--usth/ICT3.2/prac/2/4.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/usth/ICT3.2/prac/2/4.js b/usth/ICT3.2/prac/2/4.js
new file mode 100644
index 0000000..25c2a17
--- /dev/null
+++ b/usth/ICT3.2/prac/2/4.js
@@ -0,0 +1,2 @@
+const S = prompt('Enter five space-separated numbers');
+alert(`The largest is ${Math.max(...S.split(' ').map(Number))}.`);