DEV Community

calypso007
calypso007

Posted on

Js programquestion

Write a program in javascript to display the prime numbers upto 20? //Proper full details please...

Top comments (5)

Collapse
 
astriskit profile image
H S
[1, 3, 5, 7, 11, 13, 17, 19].map(console.log);
Enter fullscreen mode Exit fullscreen mode
Collapse
 
crimsonmed profile image
Médéric Burlet

This is not a solving homework platform hahaha

Collapse
 
mellen profile image
Matt Ellen-Tsivintzeli

Hi! What do you need to know? Do you know how to tell if a number is a prime number?

Collapse
 
calypso007 profile image
calypso007

Write a program in javascript to display the prime numbers upto 20? //Proper full details please...

Collapse
 
naylin99 profile image
Nay Lin Tun

Google it or let me help you!