Ruby - Operators and Expressions
What will be the output of this Ruby code?
value = 0 if value puts "Truthy" else puts "Falsy" end
value = 0 if value puts "Truthy" else puts "Falsy" end
value is assigned 0. The if value checks if value is truthy.0 is truthy, so the if branch runs.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions