Code your own adventure 2 5/6


#1

var user = prompt("Type your name!").toUpperCase();

switch(user) {
case 'Solomon':
var MySolomon = prompt("What is your surname?")
var sister = prompt("What's your sister's name?")
if(MySolomon = "laurent" && sister = "na'imah") {
console.log("Hey, brother!");
}
else {
console.log("There's more than one of you?")
}
break;
case 'Na\'imah':
var Age = prompt("What is my age?")
var Birthday = prompt("What's my birthday?")
if(Age = "13" || Birthday = "june the fourteenth") {
console.log("Hey, sister");
}
else {
console.log("There's more than one of you?")
}
break;
case 'Steve':
console.log("Steve Holt!");
break;
default:
console.log("I don't know you!");

}


#2

saw your mistake ? :slightly_smiling: