Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

var oddOrEven = function(num) {};

var oddOrEven = function(num) {
    if (num % 2 == 0) {
		return 'even';
	} else {
		return 'odd';
	};
};
 
PREVIOUS NEXT
Tagged: #var #oddOrEven
ADD COMMENT
Topic
Name
2+6 =