Skip to main content
JourneyUncommon
Toggle theme
Sign In
Sign Up
Toggle theme
Home
/
Practice
/
Ruby
medium
Ruby
keyword arguments and double splat
Single-choice MCQ
In Ruby 3.x, what happens with this call?
def k(a:, b:) "#{a}-#{b}" end opts = { a: 1, b: 2 } k(opts)