Skip to content

Incorrect Analysis: Analyzer giving incorrect example on Two-Fer exercise  #54

@ConstLuck

Description

@ConstLuck

Describe the incorrectness
The analyzer commented on my solution that it could be helpful to use string interpolation. In the example it provides it show this: "Hello there \${firstName}, I will give you \${calculateInventory()} apples.". However, this does not work. The only way I get it to work is by using backticks (`) instead of single or double quotes. Even when escaping the $, running yarn test fails.

Which exercise
Two Fer

Source file(s)

two-fer.ts

Expected analysis
I expect the example to use backticks instead of double quotes.

Additional context
Screenshot of my code and the output of running yarn test
299AFBCF-4BB8-48E6-B895-C3A3608FFFE4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions