Lesson 2
The Basic Elements
Chapter 5: Operators and Expressions
Overloaded operators
Some operators are not limited to arithmetic operations with numbers.
For example, + and * can be used for a different kind of operation when used with strs.
Try to guess the output value of the following expressions (enter “Error” if it is not a valid expression). Remember to put quotes around your output strings in your answer (e.g. "hello").
Feel free to test and experiment with an interactive prompt.
❮
❯