![]() ![]() ' ) //output: Hello Mr.JohnĪs per the above code, the inner function(i.e, greetingInfo) has access to the variables in the outer function scope(i.e, Welcome) even after the outer function has returned. ![]() Var employee1 = var myFunction = Welcome ( ' John ' ) myFunction ( ' Welcome ' ) //Output: Welcome John myFunction ( ' Hello Mr.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |