Posts by user156436 • 71 points
1 post
-
7
votes3
answers964
viewsA: Calculate change and display available notes with Javascript
This is an example of how to iterate over an array of notes, and use association to store the amount of each. I leave the manipulation of this result to you. function gerarTroco(valor) { // Notas…