Ruby - Variables and Data Types
What will be the output of this Ruby code?
def show score = 7 Score = 15 puts score end show
def show score = 7 Score = 15 puts score end show
score (lowercase), which is 7. Score (uppercase) is a constant and not used in puts.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions