-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
You never called the function! Or initialized an array to call it with! Otherwise, it works.
Danny-Hua-WebFun9-2017/Numbers Only/Danny_Hua_numbersonly.html
Lines 7 to 15 in 2eda55e
| function numbersOnly(arr){ | |
| newarr = []; | |
| for (var i = 0; i < arr.length; i++) { | |
| if (typeof(arr[i]) == "number") { | |
| newarr.push(arr[i]); | |
| } | |
| } | |
| console.log(newarr); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels