Today, we are starting Ruby!!
Very excited for this.
As of now just started with if else/elsif statements which make sense.
!true = false
!false = true
|| = or
&& = and almost like an also
for num 1..10 - writes all numbers except 10
adding ... includes what inside that range and .. includes the ending number
for text
i= 0
loop do
print "ruby!"
i += 1
break if i == 30
end
when talking about index's in array remember that 0 would be considered the first index.
arrays can constitute as different variables like integers, words, boolean
Hashes are like javascript objects or python dictionaries
key-value pairs
Top comments (0)