Alice is working on a website that calculates the total cost of products selected by a user. She notices that she is repeatedly writing the same code to calculate the sum of prices. To make her code more efficient, she decides to group this repeated code in one place so that she can call it whenever she needs to perform the calculation. What is the programming concept Alice is utilizing to improve her code?
Arrays
Functions
Objects
Variables