10.2/11 Dislikes


$scope.minusOne = function(index) {
$scope.products[index].dislikes -= 1;


so here i is my code. It will not run, and the error is not helpful in allowing me to diagnose the problem myself. I was wondering if there was anyone out there who could help me out. Thanks so much!


I feel like I'm going crazy!!!


Hi Lbarbul1,

This exercise is really tricky! It got me too :)
You're increasing the number of dislikes, so even though it doesn't look right at first, you need to use:

$scope.products[index].dislikes += 1;
                             /* ↑ increasing the number */