Created
March 17, 2021 20:31
-
-
Save MohammedALREAI/da8f7623e03bbd328b1c19792455c227 to your computer and use it in GitHub Desktop.
isOdd
This file contains hidden or 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
| function isOdd(l=3,r=9){ | |
| let arr=[] | |
| for(;l<=r;l++){ | |
| if(l%2===0){ | |
| continue; | |
| } | |
| arr.push(l) | |
| } | |
| return arr.map(item=>item) | |
| } | |
| console.log(isOdd()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment