Skip to content

Question #12

@andreariba

Description

@andreariba

Hi,
first thanks for the repository and the course.
I had a problem running
let squares = Array.from(document.querySelectorAll('.grid div'))
in app.js, in my case it returns undefined.

It works once I changed it to
let squares = Array.from( document.querySelector('.grid').getElementsByTagName('div') )
Do you know why?

Thank you very much
Andrea

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions