Steem.Js for dummies #4: Users reputation
utopian-io·@stoodkev·
0.000 HBDSteem.Js for dummies #4: Users reputation

Just a short and sweet tutorial for todaym I'm quite tired and didn't get any special request from last tutorial.
Let's see how to get and format user reputation. Easy, will you tell me, it's in getAccounts, I saw it before.
Yes you're right, but there is one more thing to do:
~~~~
steem.api.getAccounts(["stoodkev"],function(err,result){
console.log(result["0"].reputation);
});
~~~~
And tadaa my reputation is:

Unless I got super famous overnight, there is something wrong.
By checking the documentation until its very end, we can see that there is a formatter for the reputation, so no need to get in the maths behind it,let's just use it:
~~~~
steem.api.getAccounts(["stoodkev"],function(err,result){
console.log(steem.formatter.reputation(result["0"].reputation));
});
~~~~
And now, I get that, much better:

As I said, just a short tutorial for today, but I hope it was useful!
@stoodkev
<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@stoodkev/steem-js-for-dummies-4-reputato">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>👍 passion-fruit, opaulo, pcma1425, may0201, dbukyo, bitcoinparadise, xabi, make-a-whale, espoem, stoodkev, sarafol, palou, podekev, janebaba, polblitz, malilala, lecaillon, sylvia-lns, followmenow, lanslot, steem-plus, sumaira12, mmali277, mochi-mochi, hag228, mkt, themanualbot, catwomanteresa, m-san, dez1337, piach, littleboy, leir, minnowhub, yorkchinese, yuxi, yuxid, aafeng, bonny9, htliao, arinzabondar, nuya, fumigator, rosti, seneorety, arcange, icedream, ytienchu, hannahwu, jessicameng, herlife, enm, raphaelle, okoro, sharmin.papri, sarmizegetusa, sirrius, rondoncr, marshalllife, thrinadh, mycryptoverse, subornadebi, gorik, aboutyourbiz, acdevan, sajjad711, wolfenlord, amulla505, erickrivera, cheapogroovo, amiramnoam, rigor, tanvirsadatripon, awakedev, utopian-io, tonykhtan63, idlebright, rahmatmaulana,