Ruby - Variables and Data Types
Identify the error in this Ruby code snippet:
def calculate total = 10 Total = 20 puts Total + total end calculate
def calculate total = 10 Total = 20 puts Total + total end calculate
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions