copy and paste into labs.codecademy.com in the java script lab cause IDK how to save it in there
var age = prompt("how old are you?");
console.log("how old are you?");
if (age < 15){
console.log("haha I'm older than you :P");
}
else {
console.log(age);
console.log(".......damn you're older than me....almost everyone is older than me -3-");
var really = prompt("are you suuurrreeee?");
console.log(really);
console.log("PFFFF not fair");
}
var response = prompt("what's your favourite food?");
console.log("what's your favourite food?");
if (response === "sushi") {
console.log(response);
console.log("me too!! :D");
}
else {
console.log(response);
console.log("kewl xD");
}
var name = prompt("now the final question, what is your name?");
console.log("now the final question, what is your name?");
console.log("*intensive stare*");
if (name.length < 5) {
console.log(name);
console.log("WOW you have a short name 0-0");
}
else {
console.log(name);
console.log("holy crap das a long name!! D: how do you remember that?");
}
console.log("weeelllll have a nice day :3");
No comments:
Post a Comment