var my_list = [1, 2, 3]; print(my_list.pop(1)); # expect: 2 print(my_list); # expect: [1, 3]