diff --git a/codegrade_mvp.test.js b/codegrade_mvp.test.js index 30de7f245..91f2d4981 100644 --- a/codegrade_mvp.test.js +++ b/codegrade_mvp.test.js @@ -67,6 +67,7 @@ describe('gameFunction', ()=>{ expect(functions.game('scissors', 'rock')).toBe(`you lose!`); }) }); + describe('milesFunction', ()=>{ it('return km * 0.621371', ()=>{ expect(functions.miles(10)).toBe(6.21371); @@ -78,6 +79,7 @@ describe('feetFunction', ()=>{ expect(functions.feet(160)).toBe(5.2493438320209975); }) }); + describe('annoyingSongFunction', ()=>{ it('a string that counts down based on the number imputted', ()=>{ expect(functions.annoyingSong(5)).toBe(`${5} bottles of soda on the wall, ${5} bottles of soda, take one down pass it around ${5 - 1} bottles of soda on the wall`); diff --git a/index.js b/index.js index 9afb1fbac..e2ebbd6a5 100644 --- a/index.js +++ b/index.js @@ -61,8 +61,8 @@ Do the following: 3. Multiply a and b and return the answer */ -function multiply(/*add your code here*/){ - /*add your code here*/ +function multiply(num1, num2){ + return num1 * num2; } @@ -165,7 +165,7 @@ function game(user, computer){ /*🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀 Task 5 🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀*/ //Metric Converter -//Task 5a - KM to Miles +//Task 5a - Kilometers to Miles /* Using the miles function below do the following: 1. Receive a number of kilometers @@ -179,7 +179,7 @@ function miles(/*add your code here*/){ -//Task 5b - Feet to CM +//Task 5b - Centimeters to Feet /* Using the feet function below do the following: 1. Receive a number of cm diff --git a/package-lock.json b/package-lock.json index f307c2d82..54abee067 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "codegraded-project-js", - "version": "0.0.8", + "version": "0.0.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "codegraded-project-js", - "version": "0.0.8", + "version": "0.0.9", "devDependencies": { "@babel/core": "^7.17.5", "@babel/plugin-transform-runtime": "^7.17.0",