Skip to content

Conversation

@lumosmind
Copy link
Contributor

function(){return count++} is running because it is a function expression. It is running and result of this running, a function has been created and sent as a parameter to return command.
return count++; this part is not running because the function has not been called yet.

function(){return count++} is running because it is a function declaration. It is running and result of this running a function has been created and sent as a parameter to return command. "return count++;" this part is not running because the function has not been called yet.
@iliakaniliakan merged commit e8947f7 into javascript-tutorial:masterOct 29, 2019
@lumosmindlumosmind deleted the patch-14 branch January 13, 2021 21:28
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@lumosmind@iliakan