I know in Ruby, almost everything is an expression. Even those in other language such as if-else
statement, case
statement, assignment statement, loop statement is an expression in Ruby.
So I want to know from the Ruby's point of view, what's the difference between statement and expression?
There is no difference between expressions and statement is Ruby. Everything evaluates to a value so everything is an expression.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With