Build a Fortune Telling App - Step 10

Tell us what’s happening:

I don’t the idea of “Your renderCard function should return a template literal.” I mean the instruction is saying “The function should have a return type of string.” nothing else and my code is const renderCard = (
drawingType: string,
isReversed: boolean,
shortName: string,
img: string
): string => {
return “”;
};

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: index.ts */
// User Editable Region

function renderCard(
  drawingType: string,
  isReversed: boolean,
  shortName: string,
  img: string
): string {
  return '';
    
}

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36

Challenge Information:

Build a Fortune Telling App - Step 10

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-fortune-teller-app/68ded620ab19272a3fa97592.md at main · freeCodeCamp/freeCodeCamp · GitHub

hello!

try defining renderCard with the arrow function syntax, then return the template literal (``) with an implicit return (without the curly braces and return keyword).

Thank you so much @sampatee! :folded_hands: That worked perfectly