type of arguments javascript code example
Example 1: arguments object in javascript
var sum = 0;
function addAll(){
for (var i = 0; i
Example 2: parameters in javascript
function myFunction(x, y) {
if (y === undefined) {
y = 2;
}
}
var sum = 0;
function addAll(){
for (var i = 0; i
function myFunction(x, y) {
if (y === undefined) {
y = 2;
}
}