Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
code-line 26:43 giving no-shadow:no-shadow

so i wrote this piece of code for a project but now my ESLinter keeps giving me a no-shadow:no-shadow error on line 26:43 any ideas on how to fix this?

const selectionButtons = document.querySelectorAll('[data-selection]');
const finalColumn = document.querySelector('[data-final-column]');
const computerScoreSpan = document.querySelector('[data-computer-score]');
const yourScoreSpan = document.querySelector('[data-your-score]');
const SELECTIONS = [
    {
        name: 'rock',
        emoji: '✊',
        beats: 'scissors',
    },
    {
        name: 'paper',
        emoji: '✋',
        beats: 'rock',
    },
    {
        name: 'scissors',
        emoji: '✌',
        beats: 'paper',
    },
];

selectionButtons.forEach(selectionButton => {
    selectionButton.addEventListener('click', e => {
        const selectionNames = selectionButton.dataset.selection;
        const selectionchoice = SELECTIONS.find(selection => selection.name === selectionNames);
        makeSelection(selectionchoice);
    });
});
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You define a variable named selection here:

const selection = SELECTIONS

And you define another variable named selection here:

selection => selection....

And the latter shadows the former.


Rename one of the variables.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!