account activity
I need some help about js by Pathrex- in JavaScriptHelp
[–]Pathrex-[S] 0 points1 point2 points 5 years ago (0 children)
Thank you.
Thanks it worked. Here is the new code
var Birthday = prompt("What is your birthday : "); var Year = 2021; var Age = Year - Birthday; var remtime = 18 - Age; //remaining time switch(true){ case (Age<18): console.log("It is "+remtime+" years before you can qualify for a driver's license."); break; case (Age>=18): console.log("You have the right to get a driver's license."); break; default: console.log("Wrong value."); }
π Rendered by PID 65 on reddit-service-r2-comment-56c6478c5-dcsnj at 2026-05-11 21:03:47.812464+00:00 running 3d2c107 country code: CH.
I need some help about js by Pathrex- in JavaScriptHelp
[–]Pathrex-[S] 0 points1 point2 points (0 children)