Viewing a response to: @adnanrahic/the-javascript-journey-7-what-are-functions
Cool post. You can also do `return;` if you don't want to return anything. I came across Golang's ability to have multiple return values (it would be cool if javascript implements something like that). I mean something like `return x, y, z;` . Also checkout my new post on Javascript's `const` keyword: https://steemit.com/programming/@codero/javascript-s-const-keyword and follow me. I want to write more if there is support. Follow me @codero
author | codero |
---|---|
permlink | re-adnanrahic-the-javascript-journey-7-what-are-functions-20170904t131508819z |
category | programming |
json_metadata | {"tags":["programming"],"users":["codero"],"links":["https://steemit.com/programming/@codero/javascript-s-const-keyword"],"app":"steemit/0.1"} |
created | 2017-09-04 13:15:09 |
last_update | 2017-09-04 13:15:09 |
depth | 1 |
children | 1 |
last_payout | 2017-09-11 13:15:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 450 |
author_reputation | 15,333,700,816 |
root_title | "The JavaScript Journey #7 - What are Functions?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 13,844,135 |
net_rshares | 0 |
That's cool! But returning multiple values in an object acts just fine, at least for me. Like this: ```return { x: x, y: y, z: z}``` A word of advice from someone a bit more experienced. Please do not beg for followers. It can only diminish the respect people here have for you. I've never, not even once, begged for anything here, and still, people read my stuff. That's solely because I provide value, and value is worth reading. People are busy, they do not have time to read articles that are badly written or simply do not interest them. Best of luck with your future endevours. :)
author | adnanrahic |
---|---|
permlink | re-codero-re-adnanrahic-the-javascript-journey-7-what-are-functions-20170909t194045296z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2017-09-09 19:40:45 |
last_update | 2017-09-09 19:40:45 |
depth | 2 |
children | 0 |
last_payout | 2017-09-16 19:40:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 588 |
author_reputation | 1,605,311,705,685 |
root_title | "The JavaScript Journey #7 - What are Functions?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 14,388,330 |
net_rshares | 0 |