React JS Calculator

Cannot pass all tests even though when I manually put in the test data I get the correct answers. Please help.

Seems you got some of your button IDs mixed up, meaning when the test is trying to divide, its multiplying instead, etc.

const operators = [
  {"value":"Cl", "id":"clear"},
  {"value":"+", "id":"add"},
  {"value":"-", "id":"subtract"},
  {"value":"/", "id":"multiply"},
  {"value":"*", "id":"divide"}

I shot myself in the foot and didn’t even know it - thank you my friend

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.