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 Answers
+ 1
25th Jan 2022, 6:54 PM
Atul
Atul - 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