Click here to Skip to main content
15,902,492 members

Comments by lucas oliveira Dec2021 (Top 5 by date)

lucas oliveira Dec2021 5-Dec-21 11:05am View    
So, for me works to. The code is right, but isn't in the form that they want.
I send them email and they reply this : Reread the question and try to better understand what you really have to have as cases to be analyzed and which variable has that value, maybe it's not what you're thinking.
lucas oliveira Dec2021 5-Dec-21 10:52am View    
The program that i'm using is part of an app made for people who want to get into this school, and that's what the console tell me :
The code is incorrect. You should probably rethink what your switch statement is evaluating."
lucas oliveira Dec2021 5-Dec-21 10:48am View    
I know.
The program that i'm using is part of an app made for people who want to get into this school, and that's what the console is answering me
lucas oliveira Dec2021 5-Dec-21 10:21am View    
I tried this:
var weeklyPass = 'darlene';
var weekDay = 'friday';
var currentPass = weekDay;




switch (currentPass) {
case 'monday':
console.log(weeklyPass + 'mnd');
break;
case 'tuesday':
console.log(weeklyPass + 'tsd');
break;
case 'wednesday':
console.log(weeklyPass + 'wdnsd');
break;
case 'thursday':
console.log(weeklyPass + 'thrsd');
break;
case 'friday':
console.log(weeklyPass + 'frd');
break;
case 'saturday':
console.log(weeklyPass + 'strd');
break;
default :
console.log(weeklyPass + 'snd');
break;
}

The debugger tell me : The code is incorrect. You should probably rethink what your switch statement is evaluating.
And I've already rethought But I don't know why I'm not getting it man... I've tried a lot of different things...
lucas oliveira Dec2021 5-Dec-21 9:41am View    
Hi OriginalGriff, I've been stuck with this issue for 3 days. It was not my goal to ask you to do the work for me. They say that in this case 'Y' is not a vowel. I don't understand if my cases are correct or not, or if I'm doing the wrong switch statement