function sum(){ return 55 + 5; }
function sum(n) { n = n + 1; return 55 + 5 * n; }; console.log( sum('+'), sum('-') );
function sum(n) { return new Function('return '+(new Function('n', 'return 55 + n + 5')(n)))(); }; console.log( sum('+'), sum('-') );
function sum(n) { //n = n + 1; return 55 + +(n + 5) ; }; alert( [ sum('+'), sum('-')] );
function sum(n) { return 55 + 5 * (n+1); }; alert([ sum('+'), sum('-') ].join('\n'));