![]() ![]() ![]() But with the rest, I do not understand the difference between ‘the function evaluating with parentheses to the return value of that function call’ VS ‘the function evaluating to the result of calling the function without parentheses’ - I mean, isn’t the function returning the same value? They are supposed to return the same thing unless we modify the function from the code body of the function, no? I understand the ‘we don’t invoke it’ part, because we write the functions as arguments without the parentheses. With callbacks, we pass in the function itself by typing the function name without the parentheses (that would evaluate to the result of calling the function):" Invoking the function would evaluate to the return value of that function call. " When we pass a function in as an argument to another function, we don’t invoke it. Hello Everyone! So my confusion with Higher-Order Functions has to do with this part of the lecture: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |