create account

RE: Introducing the Coding Challenge by tarekadam

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @reggaemuffin/introducing-the-coding-challenge

· @tarekadam ·
$0.37
My Solution in plain old JS5 :)

```
function fizzbuzz(value) {
    if (value % 5 == 0 && value % 3 == 0) {
        console.log("FizzBuzz")
    } else if (value % 5 == 0) {
        console.log("Buzz")
    } else if (value % 3 == 0) {
        console.log("Fizz")
    } else {
        console.log(value)
    }
};

function TestNumbers() {
for (var i = 0; i < 101; i++) {
    console.log(fizzbuzz(i));
    }
};

TestNumbers();
```
👍  ,
properties (23)
authortarekadam
permlinkre-reggaemuffin-introducing-the-coding-challenge-20170817t183855297z
categorycoding-challenge
json_metadata{"tags":["coding-challenge"],"app":"steemit/0.1"}
created2017-08-17 18:38:54
last_update2017-08-17 18:38:54
depth1
children1
last_payout2017-08-24 18:38:54
cashout_time1969-12-31 23:59:59
total_payout_value0.278 HBD
curator_payout_value0.091 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length427
author_reputation50,131,776,387,207
root_title"Introducing the Coding Challenge"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,110,053
net_rshares106,798,081,292
author_curate_reward""
vote details (2)
@reggaemuffin ·
$0.22
Looks good to me ;)
👍  
properties (23)
authorreggaemuffin
permlinkre-tarekadam-re-reggaemuffin-introducing-the-coding-challenge-20170817t193556268z
categorycoding-challenge
json_metadata{"tags":["coding-challenge"],"app":"steemit/0.1"}
created2017-08-17 19:35:57
last_update2017-08-17 19:35:57
depth2
children0
last_payout2017-08-24 19:35:57
cashout_time1969-12-31 23:59:59
total_payout_value0.166 HBD
curator_payout_value0.055 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length19
author_reputation37,964,839,695,531
root_title"Introducing the Coding Challenge"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,114,148
net_rshares64,624,258,529
author_curate_reward""
vote details (1)