Created
April 4, 2020 01:16
-
-
Save Sonia-Shurmi/11fe4a82fcc293c746c53c914415428d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = 1; | |
while (x <= 20) { | |
if((x % 3) === 0){ | |
console.log("Julia"); | |
}else if((x % 5) === 0){ | |
console.log("James"); | |
}else if(((x % 3) === 0) && ((x % 5) === 0)){ | |
console.log("JuliaJames"); | |
}else { | |
console.log(x); | |
} | |
x++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment