Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test(a, b) {
- console.log('a=' + a + ', b=' + b);
- console.log(arguments)
- }
- test(1, 2); // "a=1, b=2"
- test(1, 2, 3); // "a=1, b=2"
- test(1); // "a=1, b=undefined"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement