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
That's a valid alternative. I didn't write this chapter, but if I had to guess at the intent, it's that it's better to declare variables as close as possible to their point of use. Declaring a single mutable variable would probably not affect the performance of the program, so it's a largely stylistic choice.
Why not just declare
guess
once, like this:instead of what's presented:
The text was updated successfully, but these errors were encountered: