+ 1

What's an argument?

Are they same as values

17th Aug 2016, 4:30 PM
Pinheiro Olaoluwa Samuel
Pinheiro Olaoluwa Samuel - avatar
1 Resposta
+ 2
An argument specifically refers to values PASSED TO FUNCTIONS. You define all the arguments of a function in the brackets following the function name: function add (x, y) { return x + y; } x and y are arguments to the function 'add'.
18th Aug 2016, 6:39 AM
Max
Max - avatar