function displayRating(num){
  const finalRating = document.getElementById('final-rating');
  
  switch (num) {
    case 1:
      finalRating.innerHTML = '<i class="fa fa-star"></i>';
      break;
    case 2:
      finalRating.innerHTML = '<i class="fa fa-star"></i><i class="fa fa-star"></i>';
      break;
    case 3:
      finalRating.innerHTML = '<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i>';
      break;
  }
}
/*
* Invoked by finalMessage().
* Display star rating in modal message based on rating variable.
* @ param {number} num - value of rating variable.
*/
Invoked by finalMessage().
Display star rating in modal message based on rating variable.
Invoked by finalMessage () . Display star rating in modal message based on rating variable .
function displayRating(num){
  const finalRating = document.getElementById('final-rating');
  switch (num) {
    case 1:
      finalRating.innerHTML = '<i class="fa fa-star"></i>';
      break;
    case 2:
      finalRating.innerHTML = '<i class="fa fa-star"></i><i class="fa fa-star"></i>';
      break;
    case 3:
      finalRating.innerHTML = '<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i>';
      break;
  }
}
function displayRating ( num ) { const finalRating = document . getElementById ( 'final-rating' ) ; switch ( num ) { case 1 : finalRating . innerHTML = '<i class="fa fa-star"></i>' ; break ; case 2 : finalRating . innerHTML = '<i class="fa fa-star"></i><i class="fa fa-star"></i>' ; break ; case 3 : finalRating . innerHTML = '<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i>' ; break ; } }
Invoked by finalMessage().
Invoked by finalMessage () .