Last active
January 1, 2018 16:32
-
-
Save kevinchisholm/9580b7dcd0043173abfbd3a975b7ad31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arguments[0] -> a | |
arguments[1] -> b | |
arguments[2] -> c | |
arguments[3] -> d | |
arguments[4] -> e | |
arguments[5] -> f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function inspectArguments() { | |
var i = 0; | |
for (; i < arguments.length; i++) { | |
console.log('arguments[' + i + '] -> ' + arguments[i] ); | |
} | |
} | |
var letters = ['a', 'b', 'c', 'd', 'e', 'f']; | |
inspectArguments(...letters); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arguments[0] -> x | |
arguments[1] -> y | |
arguments[2] -> a | |
arguments[3] -> b | |
arguments[4] -> c | |
arguments[5] -> d | |
arguments[6] -> e | |
arguments[7] -> f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function inspectArguments() { | |
var i = 0; | |
for (; i < arguments.length; i++) { | |
console.log('arguments[' + i + '] -> ' + arguments[i] ); | |
} | |
} | |
var letters = ['a', 'b', 'c', 'd', 'e', 'f']; | |
inspectArguments('x', 'y', ...letters); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arguments[0] -> monday | |
arguments[1] -> tuesday | |
arguments[2] -> wednesday | |
arguments[3] -> thursday | |
arguments[4] -> friday | |
arguments[5] -> a | |
arguments[6] -> b | |
arguments[7] -> c | |
arguments[8] -> d | |
arguments[9] -> e | |
arguments[10] -> f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function inspectArguments() { | |
var i = 0; | |
for (; i < arguments.length; i++) { | |
console.log('arguments[' + i + '] -> ' + arguments[i] ); | |
} | |
} | |
var letters = ['a', 'b', 'c', 'd', 'e', 'f']; | |
var days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday']; | |
inspectArguments(...days,...letters); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment