Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions NathanValmonte/Basic13.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@
// }
// printodds()

// 9 Iterate and Print Array
// 9 Iterate and Print Array WORKING
// function printarray(arr){
// console.log(arr);
// for (var i=0; i<arr.length; i++){
// console.log(arr[i]);
// }
// }
// printarray([2, 4, 24, 7]);

Expand All @@ -123,7 +125,7 @@
// }
// sqrarr([4, 5, 7]);

// 12 Zero Out Negative Numbers
// 12 Zero Out Negative Numbers WORKING
// function zeronegs(arr){
// for(var i=0; i<arr.length; i++){
// if(arr[i]<0){
Expand Down