Need a hand with some JavaScript

Need a hand with some JavaScript

in the following code, what does the "," mean between a and b?

function x(a,b=1, c=3) {
return a +b + c;
}

Thanks asshole I just got fired.

>3dpdwhoreposting
kill yourself

rip
OP>Faggot

its a shorthand for saying that both a and b equals one

Thanks OP I just got hired.

>needs wider hips
>remove thigh gap
>need to see the front side, too
Rating: I for Incomplete

fyi this function doesn't make any sense

it's just a separator. All the NON-comma symbols inside the parens are each considered 'parameters', whereas the commas divide them into each individual one, also called an argument. Then you have the '=' which just means you are setting a default value in those cases, so if no argument is passed when you call it, it will take the default. Otherwise it would just be 'undefined'.

Nice pic btw, I'm happy someone hopefully lost their job over it.

thats not a thigh gap

>She is strapped to the table
>I have a scalpel
>She sees it
>She starts to cry
>I start to cut

OP here, sorry you got fired man.

Figured I'd finish off the function for those interested

function x(a,b=1,c=3) {
return a + b + c
}
document.write(x(2,4));

Output is 9 and my reason is that the a and b become 2 and 4. Is this correct?

Sorry again about getting you fired.

>open space from one inner thigh to the other
How would that NOT be a thigh gap?

Thanks asshole, I just got a boner.

No thanks. You're a sick fuck. Not that it surprises me to see a post from a lowlife such as you on this site.

i already answered you, faggot asshole. I am the greatest JS / ES programmer alive, btw. /thread

Gotcha. Cheers for the help. Sorry again for the ass

please not jerking off again I already suffer from dehydration

Thanks boner, I just got an asshole :)

yes this is correct

>browsing Sup Forums at work
absolute no idea how this could possibly go wrong