I am stuck and don’t understand what I need to do or what is wrong with my implementation code on step 6 0f 11.

The hint doesn’t help and there is no walkthrough.

My test says my for loop is wrong…Unexpected Identifier…that does not help at all. The hint is misleading then.

Here is my test code and implementation code so far.

Any help would be great to explain what is going on thanks.

//Implementation code:

let inputNumber = 5;

const Calculate = {

for (let i = inputNumber - 1; i >= 1; i–) {

inputNumber = inputNumber * i;

}

return inputNumber

if(inputNumber === 0){

```
return 1
```

}

}

module.exports = Calculate;

// test code:

var assert = require(“assert”);

var Calculate = require(’…/index.js’)

describe(‘Calculate’, () => {

describe(’.factorial’, () => {

```
it('Tests to see if the output of !5 returns a result of 120.', () => {
//setup
const actualInput = !5;
const expectedOutput = 120;
//exercise
const factorialResult = Calculate.factorial(actualInput);
//verify
assert.equal(expectedOutput, factorialResult);
});
it('Checks if the result returns 6 when !3 is passed to .factorial()', () => {
//setup
const actualInput = !3;
const expectedOutput = 6;
//exercise
const factorialResult = Calculate.factorial(actualInput);
//verify
assert.equal(expectedOutput, factorialResult);
});
it('returns 1 when you pass in 0.', () => {
});
```

});

});