dimanche 4 mars 2018

I don't understand what if " age % 2 !==0 " is instead " age % 2 !==1 "? [duplicate]

This question already has an answer here:

var age = prompt ("what is your age?");

if(age % 2 !== 0) {

alert ("Your age is odd!"); }

Aucun commentaire:

Enregistrer un commentaire