Why my Code with => doesn't work? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Why my Code with => doesn't work?

I'm trying using => from ES6, but I just cant understand what's wrong here...can someone help me? (Also, can I write the instructions in the {...} of the function as long as I wish? Using "return" too) https://code.sololearn.com/We8lW3RM29dG/?ref=app

25th Jan 2022, 6:36 PM
DarkTechYon
DarkTechYon - avatar
2 Réponses
+ 1
25th Jan 2022, 6:54 PM
Shino
Shino - avatar
0
Kinda, I don't need to console.log it. I just need the values of the array to become greater by 2
25th Jan 2022, 7:29 PM
DarkTechYon
DarkTechYon - avatar