Skip to content

Commit

Permalink
update instructions to match requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Keiran Kozlowski committed Sep 6, 2022
1 parent 7106aed commit ce6083e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions codegrade_mvp.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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`);
Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce6083e

Please sign in to comment.