Counting Cards assigning values

Hi I am new to programming

I need to assign values
1-->2,3,4,5,6
0-->7,8,9
-1-->10,J,Q,K,A
so that when I pass arguments in function cc(c1,c2,c3,c4,c5)
it should fetch the values from Objects or any form
var obj={
  2:"1",3:"1",4:"1",5:"1",6:"1",7:"0",8:"0",9:"0",10:"-1",J:"-1",Q:"-1",K:"-1",A:"-1"
}

 var answer=obj.c1+obj.c2+obj.c3+obj.c4+obj.c5
  if(answer<0){
    return answer+"Hold";
  }else{
    return answer+"bet"
  }

so that i can add the values and return results

Your code so far


var count = 0;

function cc(c1,c2,c3,c4,c5) {
  var obj={
  2:"1",3:"1",4:"1",5:"1",6:"1",7:"0",8:"0",9:"0",10:"-1",J:"-1",Q:"-1",K:"-1",A:"-1"
}
  // Only change code below this line
  var answer=obj.c1+obj.c2+obj.c3+obj.c4+obj.c5
  if(answer<0){
    return answer+"Hold";
  }else{
    return answer+"bet"
  }
  // Only change code above this line
}


cc(2,3,4,5,6); 
cc(7,8,9,9,9); 
cc(10, "J", "Q", "K", "A");
cc(3, 7, "Q", 8, "A");
cc(2, "J", 9, 2, 7 );
cc(3, 2, "A", 10, "K")

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/counting-cards

The function will have only one card passed in at a time, so you will not have those many arguments
Look at the tests, they are sequences of function call
You also need a space between the counter and the string Hold or Bet