From 01ae05e8dbc49d7432be8cf7705dd3982f60daa6 Mon Sep 17 00:00:00 2001 From: Ariba S <153156108+asiddiqi16@users.noreply.github.com> Date: Thu, 18 Jul 2024 10:55:13 +1000 Subject: [PATCH] Added two functions --- Solutions/asiddiqi_solutions.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Solutions/asiddiqi_solutions.js diff --git a/Solutions/asiddiqi_solutions.js b/Solutions/asiddiqi_solutions.js new file mode 100644 index 0000000..edc183a --- /dev/null +++ b/Solutions/asiddiqi_solutions.js @@ -0,0 +1,8 @@ +// Write a function identity that takes an argument and returns that argument +function identity(variable_name) { + return variable_name; +} +// Write a binary function addb that takes two numbers and returns their sum +function addb(a, b) { + return a + b; +}