Note: Using A for Expression As A Function Body (Scala 3 Video)
Briefly

In Scala, every line of code can be an expression, meaning they return a result without side effects, unlike statements that don't return anything.
Statements in programming, such as println(a), are used for their side effects, while expressions are blocks of code that return a useful result.
A clarification on the Unit type: it returns a value that's not meaningful, similar to void in other languages, often used when the return value is unimportant.
Expression-Oriented Programming encourages the use of expressions instead of statements, promoting cleaner and more functional code that enhances readability and maintainability.
Read at Alvinalexander
[
]
[
|
]