Challenge for Ruby Shortcuts

Challenge

What will the following code output?

currency_input = nil
amount = 5
amount += 3
currency = currency_input || "Dollars"
puts "#{amount} #{currency}"

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Contact Us
Sign in or email us at [email protected]