fork download
  1. // your code goes here
  2. let text=" ";
  3. let i=21;
  4. if(i >= 18) {text = i + " is eligible to vote";}
  5. else{text= i + " is underage";}
  6. console.log(text);
Success #stdin #stdout 0.03s 16584KB
stdin
Standard input is empty
stdout
21 is eligible to vote