You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Immediately after the 6.4.2 ActiveCode activity, the text is: The return statement is followed by an expression which is evaluated. Its result is returned to the caller as the “fruit” of calling this function.
I think it should instead read: The function definition is followed by an expression which is evaluated. Its result is returned to the caller as the "fruit" of calling this function.
The text was updated successfully, but these errors were encountered:
Upon re-reading the text, it does make sense the way it is. However, to beginning programmers, the intended meaning may not be clear, especially with the example code given.
Perhaps changing the original wording would make it more clear: The return statement is followed by an expression (in this case y is the expression) which is evaluated. Its result is returned to the caller as the “fruit” of calling this function.
Course: PES-COOP-S2023 (thinkcspy)
Page: 6.2. Functions that Return Values
Link: https://runestone.academy/ns/books/published/thinkcspy/Functions/Functionsthatreturnvalues.html?mode=browsing
Username: bmontana-edu
Describe the bug
Immediately after the 6.4.2 ActiveCode activity, the text is: The return statement is followed by an expression which is evaluated. Its result is returned to the caller as the “fruit” of calling this function.
I think it should instead read: The function definition is followed by an expression which is evaluated. Its result is returned to the caller as the "fruit" of calling this function.
The text was updated successfully, but these errors were encountered: