# Function and Function Item Nodes
# Difference between both nodes
The difference is that the code of the Function node gets executed only once. It receives the full items (JSON and binary data) as an array and expects an array of items as a return value. The items returned can be totally different from the incoming ones. So it is not only possible to remove and edit existing items, but also to add or return totally new ones.
The code of the Function Item node on the other hand gets executed once for every item. It receives
one item at a time as input and also just the JSON data. As a return value, it expects the JSON data
of one single item. That makes it possible to add, remove and edit JSON properties of items
but it is not possible to add new or remove existing items. Accessing and changing binary data is only
possible via the methods
Both nodes support promises. So instead of returning the item or items directly, it is also possible to return a promise which resolves accordingly.
|Data to access||Function||FunctionItem|