Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Welcome to Codewars!
carrer
should becareer
this
reserved keyword (remove it) since the variable you created is inside the function and you are not making a class or prototype - no arguments will be called aslong it.this
is only used when refering to class instances (see here), so if you're a beginner, I wouldn't get into straight away.Your code always returns "Full-Stack Developer" since that is the default case as it's an else statement.
this.career
doesn't exist and will return "undefined". "Undefined" is not less than 0.32 and is not less than 0.65, so it will default to the else statement (this being "Full-Stack Developer").Hope I helped, feel free to ask if you have anymore queries.