using map and concat

concat two arrays then using a loop to iterate through this array to remove the strings with the concat array

by james gotsell

HTML

<script src=" https://getfirebug.com/firebug-lite-debug.js"></script>

JavaScript

var number = [1,2,3];

var double = number.map(function(num){
		return num * 2
})

console.log(double)

var alpha = ["a", "B" ,"c"]

var concatedValues = double.concat(alpha);

console.log(concatedValues)



for (var i =0; i < concatedValues.length; i++){
   if(concatedValues[i].indexOf(typeof == "string", i){  		   concatedValues.splice(i, 1)
   }
}