Lesson 7. There was a problem with your syntax


#1

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
console.log(number);
}
timesTwo (8)


#2

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

getNewNumber(8);

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.


#3

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