summaryrefslogtreecommitdiff
path: root/Base/home/anon/js
diff options
context:
space:
mode:
authorhowar6hill <f.eiwu@yahoo.com>2020-03-12 19:43:22 +0800
committerAndreas Kling <kling@serenityos.org>2020-03-12 13:27:28 +0100
commit9f3f0d9983590864f5b64147329223b46c55e854 (patch)
tree95dcfdd1f6d61cb087e68b7c09e253425098b9e8 /Base/home/anon/js
parentf405cb6a77da5dc19a305e6c92a862f0eb7e032e (diff)
downloadserenity-9f3f0d9983590864f5b64147329223b46c55e854.zip
LibJS: Add test for function with arguments
Diffstat (limited to 'Base/home/anon/js')
-rw-r--r--Base/home/anon/js/function-with-arguments.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/Base/home/anon/js/function-with-arguments.js b/Base/home/anon/js/function-with-arguments.js
new file mode 100644
index 0000000000..f87b61162c
--- /dev/null
+++ b/Base/home/anon/js/function-with-arguments.js
@@ -0,0 +1,4 @@
+function foo(a, b) {
+ return a + b;
+}
+foo(1, 2 + 3);