Q-Centrix Interview Question

Explain what the loss function is in a neural net.