Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var list = [ {id:1, name:"Spodoptera", quantity:75}, {id:2, name:"Torraozinho", quantity:91}, {id:3, name:"Falsa Medideira", quantity:32} ]
- document.write("Produtor segue a lista da(s) Praga(s) a ser(em) eliminada(s):<br/>")
- for (var i = 0; i < list.length; i++) {
- var incidencia = list[i];
- if(incidencia.quantity >= 75) {
- document.write(incidencia.name + '<br/>');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement