Q: What value gets printed ?
Answered
quizz 30/36
a = [1, 2, 3, 4] a.unshift(2) a.pop(4) a.push(1, 2) a.delete(2) p a
copy
Ruby 3.3.0
[1, 3, 1, 2]
[1]
[3, 1]
[2, 1]
privacy policy