Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (var i = 0; i < sailors.length; i++) {
- if (age[i] > 20 && age[i] < 40) {
- firstShip.push(age[i]);
- console.log("Hello");
- } else {
- secondShip.push(age[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement