// your code goes herelet text="";let i=2;if(i >= 18) {text = i + "is eligible to vote";}else{text= i + "is underage";}console.log(text);
Standard input is empty
2is underage
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!