We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Here's the link: http://stackoverflow.com/a/11905051/487554. From what I understand, we'd need to use global, or change the function call, only when modifying the value. Merely reading it, like we do in amIOld, does not require the 'global' keyword.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Class vs. Instance
You are viewing a single comment's thread. Return to all comments →
Here's the link: http://stackoverflow.com/a/11905051/487554. From what I understand, we'd need to use global, or change the function call, only when modifying the value. Merely reading it, like we do in amIOld, does not require the 'global' keyword.