Question: how codas work in music?
Answer: In music notation It is used where the exit from a repeated section is within that section rather than at the end. The instruction "To Coda" indicates that, upon reaching that point during the final repetition, the performer is to jump immediately to the separate section headed with the coda symbol.