it seems a pretty easy question but I can't find a solution.
I need to turn the argument of this function (just numbers followed by a comma) into an array full of numbers. The problem is, the argument is not a string and I cannot add the "" to it. If I console.log([card]) only the first number appears into the array (the 2)... I tried to do a loop but it didn't work out.
Thanks for the help!
function cc(card) {
}
cc(2,3,4,5,6);
cc(2,3,4,5,6);you are sending 5 different argument. You are seeing only the first argument because JS is very perimissible and won't complain if you send a different amount of argument that what it is suposed to receive