function foo () {
    var num = 8;
    if (num % 2 === 0) {
        console.log('even');
    } else {
        console.log('odd');
    }
}

foo();


function solve(params) {
	var n = parseInt(params[0]);

	if (n % 2 === 0) { 
		console.log("even " + n);
	} else {
		console.log("odd " + n);
	}
}
Solve problem 01. Odd or Eaven
Solve problem 01. Odd or Eaven
