Ruby - Arrays
Find the error in this Ruby code:
arr = [1, 2, 3] puts arr.include(2)
arr = [1, 2, 3] puts arr.include(2)
include? with a question mark at the end.include without the question mark, which causes a NoMethodError.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions