function iseven(x){ if (x % 2 === 0){ console.log(x+'is even!'); } else console.log(x + 'not even'); } function main(){ var x = iseven(4); } main();