Clarification on understanding please!

Hi all

Wonder if you can help me fully understand something. When going through the videos, Ben changes a function call to a string, but it still calls the function:

GetGuess(): // Which calls the GetGuess function… I get that…

But the line gets changed to “String Guess = GetGuess();”

So, by defining a string and giving it a name (Guess) and saying it is equal to the function GetGuess(), does it makes it run the function to get the current result?

This may seem simple to most, but my brain has just gone, well where did the function call come from…???

Thank you in advance for your time and effort, really is appreciated.


Yes, GetGuess will run and the copy of the result will be stored in Guess variable for further use.

Privacy & Terms