DEV Community

Amit Prajapati
Amit Prajapati

Posted on

Write the code to print the odd numbers ?

for(let i=1;i<=15;i++){
    if(i%2){
        console.log(i,'is the odd number`)
    }
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay