4.2 project java scripts | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

4.2 project java scripts

For java script tutorial in the 4.2 project, how would I make it display only even numbers ?

26th Jun 2021, 1:43 PM
Aziz Patrawala
Aziz Patrawala - avatar
2 Answers
0
even numbers are divisible by 2 reminder of even number divised by 2 == 0
26th Jun 2021, 1:55 PM
visph
visph - avatar
0
Pariket don't give ready made answer while OP has not tried by himself first ^^ only give hints... and better to correct what he has done, than providing your own solution ;P anyway, your code is far more verbose than necesary...
26th Jun 2021, 2:02 PM
visph
visph - avatar