Build a Fortune Telling App - Step 53

Tell us what’s happening:

Hi everyone,

I’m stuck on Step 53. The tests keep saying:

“You should call the showElements function inside the newReading method.”

“You should call the hideElements function inside the newReading method.”
newReading(): void {
showElements(
this.elements.singleCardBtn,
this.elements.multipleCardsBtn,
this.elements.headerTitle,
this.elements.text
);
hideElements(
this.elements.singleCard,
this.elements.multipleCard,
this.eleme

Your code so far

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

/* file: styles.css */

/* file: index.ts */
// User Editable Region
  newReading(): void {
    showElements(
        this.elements.singleCardBtn,
        this.elements.multipleCardsBtn,
        this.elements.headerTitle,
        this.elements.text
    );
    hideElements(
        this.elements.singleCard,
        this.elements.multipleCard,
        this.elements.fortuneContainer,
        this.elements.fortuneDescription
    );
  
}
}
// 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/151.0.0.0 Safari/537.36

Challenge Information:

Build a Fortune Telling App - Step 53

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

Welcome to the forum @martin.dobr45,

The app works when I use your code, but there’s an issue here I will report on GitHub because the tests pass when you implement the instruction exactly as worded, sending in no arguments in those function calls, which causes the “New Reading” button not to function.

Happy coding