Clarification on the console.log use

When we first used the console.log in Lesson 11 Activity 8 it was to ask a question is fruit.scale > 2,
in this explanation it seems like it is being used as just text. Is it because you need a variable for if-elses?

image