You are viewing a single comment's thread from:
RE: Calculating my yesterday's earnings on Steem in JavaScript
You could also have defined a new variable for every holding, instead of using the interactive way. The result would have been the same and you would have not noticed any improvement, but:
- You have just learnt the concept of variables. It is better to use them every time you could, even if it looks a silly usage.
- You will later or sooner be using a debugger. Assigning values to variables will help you detect problems in your code.
I see what you mean! An obvious choice for next exercise... Thank you!
Posted using Partiko Android