Find All The Odd Numbers

let arr = [];function oddNumbers(l,r){}
let arr = [];function oddNumbers(l,r){
for(let i = l; i <= r; i++){
}}
let arr = [];function oddNumbers(l,r){
for(let i = l; i <= r; i++){
if(i % 2 !== 0){
}}}
let arr = [];function oddNumbers(l,r){
for(let i = l; i <= r; i++){
if(i % 2 !== 0){
arr.push(i)
}}}
let arr = [];function oddNumbers(l,r){
for(let i = l; i <= r; i++){
if(i % 2 !== 0){
arr.push(i);
} } return arr;}

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Messing with animation in React.js

A Complete Guide to Upload JSON file in S3 using AWS Lambda

Angular — fresh overview of internationalisation

React Hooks: useState and useEffect

How to build a microservice with NodeJs, Express and MongoDB

[EVENT] Follow villbit Get $10🚀🚀

Solving problems with ‘for’ loops in JavaScript

Angular Widgets

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ben Harter-Murphy

Ben Harter-Murphy

More from Medium

A Company That Does it Right~ Grey Bandit Extended

How to Run 100 Miles: The Art and Science of Endurance-Week 13

Exiting the Matrix

The unrest in Kazakhstan does not rule out the mastermind behind the scenes.