Skip to content

Instantly share code, notes, and snippets.

View pycraft114's full-sized avatar

ChanWoo Park pycraft114

View GitHub Profile
@pycraft114
pycraft114 / assignment.js
Created January 7, 2017 07:30
assignment
//--------------Returns odd numbers---------------------------------------------
function printOdd(number){
var i = 0;
var oddNum = [];
while (i <= number){
if (i % 2 === 1){
oddNum.push(i);
i++;
}else {