7. Keeps popping up an error message?


I'm trying to get this to work but it keeps popping up with an error message and I can't figure out what's wrong...

var newNumber = twoTimes(8); {

Is there anything wrong with this code?


Its suppose to be like this:

var timesTwo= function(number)
 return number*2;   
var newNumber=timesTwo(5);


Ok thanks. This really helps...


LOL thats what i did and it said it wouldnt work until now....ugh