JavaScript Express Basics Parameters, Query Strings, and Modularizing Routes Randomize Cards

Nicholas Smay
Nicholas Smay
10,657 Points

Question link not showing up

Does anyone see anything wrong with this code? My answer link is working, but I can't get the question link to appear once the answer is being displayed.

  if (side === 'question') {
    templateData.hint = hint;
    templateData.sideToShow = 'answer';
    templateData.sideToShowDisplay = 'Answer';
  } else if (side === 'answer') {
    templateData.sideToShow = 'question';
    templateData.sideToShowDisplay = 'Question';
a(href=`${id}?side=${sideToShow}`)= sideToShowDisplay

I had this issue. The solution was just to take my anchor link out of the hint if loop by indenting the anchor element once to the left.