4 Answers
New AnswerYou execute your function in return statement. (function(y){ y+1; })(++a) // ++a is an argument of your function You execute it with ++a. Preincrementation works before going into function hence "a" is 3. Then function adds 3+1 which is 4 and then abc function returns result of inner function and adds a, so it gives 4 + 3.
As Jakub said above 😄 you can review this lesson if you want.. https://www.sololearn.com/learn/JavaScript/1130/ Good luck my friend 💚
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message