From 17227780fb7f0691536227bf495016d9513d9d24 Mon Sep 17 00:00:00 2001 From: lucaspchartier Date: Fri, 10 Apr 2020 15:14:42 -0400 Subject: [PATCH] chore(js-functions-1): fix typos in functions file --- src/js-functions-1.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/js-functions-1.js b/src/js-functions-1.js index 0d86312..de1f3a9 100644 --- a/src/js-functions-1.js +++ b/src/js-functions-1.js @@ -2,39 +2,40 @@ const shouldRunMain = process.argv[3]; // expects no argument // example usage: hello() -// expected output: console logs "Hello World!" +// expected output: prints "Hello World!" // expected return: undefined const hello = () => { // fill in this function + console.log('Hello World!'); }; // expects a string argument // example usage: helloString("Bye!") -// expected output: console logs "Bye!" +// expected output: prints "Bye!" // expected return: undefined -const helloString = inputString => { +const helloString = (inputString) => { // fill in this function }; // expects an array of strings argument // example usage: helloString(["Bye!", "Hi!"]) -// expected output: console logs "Bye!" and then console logs "Hi!" +// expected output: prints "Bye!" and then prints "Hi!" // expected return: undefined -const helloArray = inputArray => { +const helloArray = (inputArray) => { // fill in this function }; // expects an object with key "message" argument // example usage: helloString({message: "Hello"}) -// expected output: console logs "Hello World!" +// expected output: prints "Hello World!" // expected return: undefined -const helloObject = inputObject => { +const helloObject = (inputObject) => { // fill in this function }; // expects 3 arguments // example usage: helloString("Hello", "World", "!") -// expected output: console logs "Hello World!" +// expected output: prints "Hello World !" // expected return: undefined const helloArguments = (argumentOne, argumentTwo, argumentThree) => { // fill in this function @@ -47,10 +48,10 @@ const helloArguments = (argumentOne, argumentTwo, argumentThree) => { console.log('Starting Main'); hello(); - helloString(''); // replace arguments + helloString(); // replace arguments helloArray([]); // replace arguments helloObject({}); // replace arguments - helloArguments('', '', ''); // replace argumentss + helloArguments('', '', ''); // replace arguments })(); module.exports = {