Ruby - Operators and Expressions
Given this code:
What is the output and why?
settings = { theme: nil, font_size: 12 }
settings[:theme] ||= 'dark'
settings[:font_size] ||= 14
puts settings[:theme]
puts settings[:font_size]What is the output and why?
