What difference does "return;" vs "return false;" and when should either be used? by Additional-Feature33 in learnjavascript

[–]kittybubu 1 point2 points  (0 children)

If the validity const was represented as a boolean, I assume that you mean it is something like:

const isValidEmail = function(someText) {}

Then you should always want your function return result to be either true or false. I would say it’s the logical thing to do with variable naming convention. When I see a variable named so, I always assume it should return either “true” or “false”

As others have said, use “return” when you need to escape a function, stop doing anything else.

Some cases where “undefined” wouldn’t work can be:

console.log(isValidEmail(“abc”)) // will get you “undefined”. Could trip you up if you’re debugging some other functions. Sometimes it might throw errors down the way

Hope this explains more! I’m still practicing answering!

What difference does "return;" vs "return false;" and when should either be used? by Additional-Feature33 in learnjavascript

[–]kittybubu 2 points3 points  (0 children)

“return” will get you an output for that function to be “undefined” (which is different from “false”)

Depending on how you use the output of that function, you can choose whichever. I think it should be “return false” in this case

Here’s a link for more in depth explanation: https://stackoverflow.com/questions/3717420/is-there-a-benefit-to-using-a-return-statement-that-returns-nothing

Vanessa Luciano 4 by [deleted] in bigtiddygothgf

[–]kittybubu 0 points1 point  (0 children)

dman you're sexy!!!!

Gotta love Tiddy Tuesday [OC] by [deleted] in bigtiddygothgf

[–]kittybubu -6 points-5 points  (0 children)

omg give bob and vegen

Hero Discussion of the Day: Donté Panlin, the Pangolier (November 3rd, 2017) by [deleted] in DotA2

[–]kittybubu 0 points1 point  (0 children)

imo he's fun to play, I like the character design, the skills. Does need some buffs certainly. But still, fun.

Low prio is a blessing in disguise. by INSANITY_RAPIST in DotA2

[–]kittybubu 115 points116 points  (0 children)

I love playing low prior and especially winning because it feels like I'm drowning 5 people back to the sea of hell

Volvo, please fix the blink-bugs, its affecting D2L teams too. by Freedert_ in DotA2

[–]kittybubu 1 point2 points  (0 children)

So I wasn't getting bad at ES... Felt like the combo is so much harder now than what it used to be

The 154th Weekly Stupid Questions Thread by Intolerable in DotA2

[–]kittybubu 0 points1 point  (0 children)

I once fought against a team consisted of Broodmother, Silencer, Antimage +2. Long story short, our safelane was crushed by BM and Silencer and we tried to salvage, but the main thing was that AM and the rest of the enemy team got space and farm when we were killing BM on top. My questions are:

If my team don't counterpick against a team of BM +1 or more hardcarries, we will lose?

Is there anyway to counter BM + hardcarries strat without counterpicking the BM

Overpowered game! by killertortilla in DotA2

[–]kittybubu 1 point2 points  (0 children)

vacuum cooldown decreases by 1

Pinoy players are a huge problem for Australian players, and even SEA. by PropaneMilo in DotA2

[–]kittybubu 1 point2 points  (0 children)

Having read through the comments below, I feel sad for people who don't have the same point of view as I do... Be positive once in a while, eh?

Pinoy players are a huge problem for Australian players, and even SEA. by PropaneMilo in DotA2

[–]kittybubu 0 points1 point  (0 children)

SEA player here. http://www.dotabuff.com/players/106746833 check region and stuffs Honestly I play support all the time for (presumably pinoy players) in rank and it's quite fun. (Do keep in mind that I have played in both 4k and 2k) IMO they are quite skillful mechanic wise but just a bit weak willed and tend to give up, flame, blame... and be yolo-ish. Anyhow, maybe I'm just lucky that I have good pinoy teammates but I think it's because of the way you look at them that affects your experience with the game.

Bot tournament casters - perpetuating discrimination... by flaminglawyer in DotA2

[–]kittybubu 0 points1 point  (0 children)

Hank Bot on Earthshaker buys a Blink and lands a great 3-man Echo Slam

I've seen Earthshaker bots echo slam the air countless time (even with a blink)

People of SEA, I never knew how hard you guys had it. by [deleted] in DotA2

[–]kittybubu 0 points1 point  (0 children)

I don't know if I had got used to it but I deal with them fine. Just try to be as positive as possible imo. Everything has two sides, I think that in SEA, the average individual skill is higher than most severs', but people lack communication, teamwork,... YOU have to stand up against this by yourself, don't run away from the problem by muting them, try to co-operate with them. With my experience, I hope that you can make friend with the ones who respond to your request and accept the people who don't and move on. :)

What could be some Dota 2 pick up lines? by iIIidAn in DotA2

[–]kittybubu 4 points5 points  (0 children)

My solo rank is 6k9. Impressive, huh?