Lesson 7. There was a problem with your syntax


I do not know what is wrong with my code, could anyone help me?
This is my code.

// Call timesTwo here!
var newNumber = timesTwo (8);{
return timesTwo * 2
timesTwo (8)


var getNewNumber = function (number) {
   console.log(number * 2);
   return number * 2;


I'm not sure that it's correct to pass the lesson. So, could you post link to the lesson?
Also review your code and compare with mine.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.