Hello @scriptmaster34194! Welcome to the forum.
There are many lessons throughout Codecademy where the SCT is expecting only 1 of several possible solutions. I would imagine that it would be quite difficult to write the SCT code to accept every possible working solution that we could come up with. There are several other ways that learners could debate would be ‘better’ to pass the exercise that you’ve referenced. For example:
console.log(`You will${isLocked ? ' ' : ' not '}need a key to open the door.`);
Sometimes we just have to deal with what is, and move on. Happy coding!
Hi! I’m doing the Ternary operator lesson. The first two questions worked and ran fine, but when I do the third one, I get the error: Did you check to see if favoritePhrase is assigned to ‘Love That!’?. I have checked, and it is. My code runs fine, so why can’t I complete the lesson?