Posts by João Cota • 16 points
2 posts
-
0
votes2
answers83
viewsA: Read JSON with JS
You would like to organize the series according to the "serie" attribute of your object array? I believe it can be solved as follows: const dados = [ { "cnpj": "1234567891011", "serie": "1",…
-
0
votes1
answer87
viewsA: JSON Challenge and JS Separate Items
If you just need to print the values... this should solve const imprime = (valores) => { for (let [key, value] of Object.entries(valores)) { console.log('CNPJ:', key); let serie1 = [], serie2 =…
javascriptanswered João Cota 16