Skip to content

Incorrect usage of template literal in JavaScript code #124

Open
@maski07

Description

@maski07

Describe the bug
There is an error in the usage of template literal in the following code:

const endpointURL = `https://api.twitter.com/2/users/me?{params}`;

It should be corrected to:

const endpointURL = `https://api.twitter.com/2/users/me?${params}`;

This bug is causing unexpected behavior in the program.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the section where the code is used
  2. Execute the code

Expected behavior
The code should execute without any error or unexpected behavior.

Additional context
Nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions