From 77488adcc8275699d737b17909c8f79e4b50469c Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 5 Jan 2024 16:17:39 -0500 Subject: 2703 --- 2703/main.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 2703/main.js (limited to '2703') diff --git a/2703/main.js b/2703/main.js new file mode 100755 index 0000000..6e02ccf --- /dev/null +++ b/2703/main.js @@ -0,0 +1,14 @@ +#!/usr/bin/env node +"use strict"; + +/** + * @param {...(null|boolean|number|string|Array|Object)} args + * @return {number} + */ +var argumentsLength = function (...args) { + return args.length; +}; + +/** + * argumentsLength(1, 2, 3); // 3 + */ -- cgit v1.2.3