im doing this qualification bootcamp and i cant seem to get it to work properly. it should just return true without those two annoying errors at the bottom of the pic.
this is the pic with question, code and errors:
i tried different methods like just calling the function name and now console.log returns true like its supposed to but its giving 2 other errors in this bootcamps specific editor.
jsfiddle, jsbin and the browsers console just returns true without any errors.
here is written code i have done:
var registrationNumber = “CY123”;
function isFromBellville() {
return registrationNumber.startsWith("CY")
};
console.log(isFromBellville());