A very quick question


As you can see to the right it logs the number 24.

My question: Why does it log it?


The log out you see is a response from the command line interpreter. We are working in a terminal and the natural behavior is to respond to any given command. The last command received is,

susan2.age = 24;

to which the terminal responds, 24 indicating it as the last value in its buffer. It can be ignored, or overridden with a simple log out at the very end. It may or may not be accepted by the lesson checker:


Now the last command to the terminal will be log(), and it will respond with Susan Jordan.


oh nice!! Thank you for taking your time and answering my question :slight_smile: