I am stuck on a course challenge in the Factorial challenge Learn TDD with Mocha

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.', () => {

  

});

});

});

Task #3 requested that you create a factorial() method inside of your Calculate object, but this is what you have right now:

let inputNumber = 5;

const Calculate = {

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

  inputNumber = inputNumber * i; 

}
return inputNumber

  if(inputNumber === 0){

    return 1
  }
}

There isn’t a factorial() method for the test to call and it isn’t valid syntax for an object, so you need to go back to some of the earlier tasks to work through them again.

As for a walkthrough, there is one available at the end in Task #11, but I think they put it there to help encourage people to do their best working through the process first.