Advertisement
rony2605

Retornar o valor mutiplicado por 2

Mar 11th, 2013
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var timesTwo = function(number) {
  2.     return number * 2;
  3. };
  4.  
  5. // call timesTwo here
  6. var newNumber = timesTwo(4);
  7. console.log(newNumber);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement