) It seems my function works well , but I can not pass all test , who can help me ?

Link to kata : <https://www.codewars.com/kata/536e9a7973130a06eb000e9f/train/javascript>

```
function calculateDamage(yourType, opponentType, attack, defense) {
  let key = yourType + opponentType;

  let dataObj = {
    "firegrass": 2,
    "grassfire": 0.5,
    "firewater": 0.5,
    "waterfire": 2,
    "watergrass": 0.5,
    "grasswater": 2,
    "waterelectric": 0.5,
    "electricwater": 2,
  }
/* console.log(dataObj[key]) */
if (dataObj[key]) {
 let damage = 50 * (attack / defense) * dataObj[key];
 return damage
} else { 
 let damage = 50 * (attack / defense)*1 ;
 console.log(yourType, opponentType, attack, defense,damage)
 return damage
}}

```