create account

RE: The JavaScript Journey #7 - What are Functions? by codero

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

Viewing a response to: @adnanrahic/the-javascript-journey-7-what-are-functions

· @codero ·
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
properties (22)
authorcodero
permlinkre-adnanrahic-the-javascript-journey-7-what-are-functions-20170904t131508819z
categoryprogramming
json_metadata{"tags":["programming"],"users":["codero"],"links":["https://steemit.com/programming/@codero/javascript-s-const-keyword"],"app":"steemit/0.1"}
created2017-09-04 13:15:09
last_update2017-09-04 13:15:09
depth1
children1
last_payout2017-09-11 13:15:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length450
author_reputation15,333,700,816
root_title"The JavaScript Journey #7 - What are Functions?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id13,844,135
net_rshares0
@adnanrahic ·
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. :)
properties (22)
authoradnanrahic
permlinkre-codero-re-adnanrahic-the-javascript-journey-7-what-are-functions-20170909t194045296z
categoryprogramming
json_metadata{"tags":["programming"],"app":"steemit/0.1"}
created2017-09-09 19:40:45
last_update2017-09-09 19:40:45
depth2
children0
last_payout2017-09-16 19:40:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length588
author_reputation1,605,311,705,685
root_title"The JavaScript Journey #7 - What are Functions?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,388,330
net_rshares0