Where is the error in the code?

  • 0
    Error somewhere in this place:
    async removeCar(car) {
          const { id } = car;
          const response = await fetch('http://127.0.0.1:8000/api/cars/${id}/',


    68:15 error 'id' is assigned a value but never used no-unused-vars
    JavaScript Anonymous, Nov 7, 2020

  • 1 Answers
  • 0
    Written: variable 'id' is set but not used. You are using wildcard string syntax on a regular string. Replace `` with ''
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!