Ruby - Operators and Expressions
Find the error in this Ruby code snippet:
count = 0 count ||= 5 puts count
count = 0 count ||= 5 puts count
count is 0, which is not nil or false in Ruby (0 is truthy).count ||= 5count is truthy (0), count ||= 5 does not change it.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions