You are viewing a single comment's thread from:

RE: Calculating my yesterday's earnings on Steem in JavaScript

in #steemleo5 years ago

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:

  1. 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.
  2. You will later or sooner be using a debugger. Assigning values to variables will help you detect problems in your code.
Sort:  

I see what you mean! An obvious choice for next exercise... Thank you!

Posted using Partiko Android

Coin Marketplace

STEEM 0.27
TRX 0.11
JST 0.031
BTC 67320.55
ETH 3709.85
USDT 1.00
SBD 3.78