function clickedT(event){
  randNum();
  for(var i = 0; i < Products.allproduct.length; i++){
    if(event.target.alt === Products.allproduct[i].alt){
      Products.allproduct[i].clicked++;
    }
  }
}
//Event handler initiates the "randNum" function and tracks which images were clicked
Event handler initiates the "randNum" function and tracks which images were clicked
Event handler initiates the " randNum " function and tracks which images were clicked
function clickedT(event){
  randNum();
  for(var i = 0; i < Products.allproduct.length; i++){
    if(event.target.alt === Products.allproduct[i].alt){
      Products.allproduct[i].clicked++;
    }
  }
}
function clickedT ( event ) { randNum ( ) ; for ( var i = 0 ; i < Products . allproduct . length ; i ++ ) { if ( event . target . alt === Products . allproduct [ i ] . alt ) { Products . allproduct [ i ] . clicked ++ ; } } }
Event handler initiates the "randNum" function and tracks which images were clicked
Event handler initiates the " randNum " function and tracks which images were clicked