readarray - read lines from stdin into an array (bash builtin, same as mapfile)
readarray [-t] ARRAY
Options you will use
-t- Strip the trailing newline from each line.
Taught in
Try readarray in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.