Find the Symmetric Difference (input arguments?)

Tell us what’s happening:
Sorry I’m new to this and trying to complete some of the Coding Interview Challenges.

This problem is suppose to take in args which is an array of arrays. However when I console.log(args) it only gives an array. What am I missing here?

Your code so far

function sym(args) {
  console.log('START HERE')
  console.log(args)
  

  return args;
}


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:
https://learn.freecodecamp.org/coding-interview-prep/algorithms/find-the-symmetric-difference/

Try searching for “javascript arguments object”. It will be very clear once you read it.

Sorry I didn’t mean array of arrays. What I meant was args[0] would extract the first argument and args[1] would extract the second argument.

would extract number 1 from first array.
args[1] number 2, args[2] would number 3, args[2] would go out of bound and so on …
arg can catch only first array’s members. As i said before, arguments object javascript.
Hell, try console.log(arguments[1]) see what happens. You’ll get second array. Problem is that you don’t know in advance how many array will be passed as arguments. So iterate over “arguments”. and print’em just to see. Use for loop for which as a second parameter you’ll use length of “arguments” arguments.length

thank you this was all I was looking for.

clearly not familiar with javascript but args (which is plural) is confusing.

read up on the arguments object in javascript. thanks again