Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (year > 2100) {
- args;
- }
- public static void checkAge();{
- I have my arguments in here, I haven't included them as the error is with the above line
- }
- end;
- public static boolean checkAge(){
- if (age > 13) {
- console.log("Yer too old ter play this here game, get yer darrière out o' here!");
- age = prompt("What's your age?");
- }
- else {
- console.log("Welcome, young one!");
- confirm ("Are you ready to play?");
- var year = prompt("What year is it? (Enter a negative number for BC)");
- }
- }
- end;
- public static void checkAge(){
- public static boolean checkAge(){
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement