who can take all the numbers that have 6 ... get from this array [26, 6, 19, 36, 666, 46, 278, 996, 56] | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

who can take all the numbers that have 6 ... get from this array [26, 6, 19, 36, 666, 46, 278, 996, 56]

Help

11th Feb 2019, 7:52 PM
Arm Games
Arm Games - avatar
4 Respostas
+ 11
var arr = [26, 6, 19, 36, 666, 46, 278, 996, 56]; var noSix = arr.filter(function(n) { return !String(n).includes('6') }); var onlySix = arr.filter(function(n) { return String(n).includes('6') }); console.log(noSix); console.log(onlySix);
11th Feb 2019, 8:00 PM
Burey
Burey - avatar
+ 6
šŸ¤˜
11th Feb 2019, 8:44 PM
Burey
Burey - avatar
+ 2
666 tho I am a man of god i cannot help you so sorry
11th Feb 2019, 8:45 PM
Ivan
0
ThankšŸ˜œšŸ‘
11th Feb 2019, 8:12 PM
Arm Games
Arm Games - avatar