Ruby - Methods
What will this Ruby code print?
def calculate(price:, tax: 0.1) price + price * tax end puts calculate(price: 100)
def calculate(price:, tax: 0.1) price + price * tax end puts calculate(price: 100)
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions