summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/script.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/demo/script.js b/demo/script.js
index 5f536fd..9e7e9ad 100644
--- a/demo/script.js
+++ b/demo/script.js
@@ -1,5 +1,5 @@
-function main() {
+function lowest_price() {
const offers = [{ id: 1, price: 2.01}, { id: 2, price: 2.99 }];
let min_price = null;
@@ -15,3 +15,8 @@ function main() {
return best_offer;
}
+function main() {
+ return lowest_price();
+}
+
+