Ruby - Error Handling
What is the output of this Ruby code?
value = Integer('abc') rescue 'error'
puts valuevalue = Integer('abc') rescue 'error'
puts valueInteger('abc') raises an ArgumentError because 'abc' is not a valid number.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions