What is the ? operator


Im on 9.ternary conditional and it is showing the use of a ? in the code but it hasn't introduced what that means.


They are introducing you to it right now, in this exercise. It is called the "ternary operator".


Once you read over that exercise, and had a chance to look at this:

(pointsScored > 20) ? 'W' : 'L';

Let me know if you have any questions about it.