Skip to content

Beginner's question: element.classList.add() and element.textContent #3

@DrZYin

Description

@DrZYin

Hi, I just started learning to code, and in my first js file I tried
element.classList.add()
and
element.textContent
and found the word classList and textContent isn't colored. Is it intentional? How do I tell whether a piece of colorless code is a typo or not?

Thanks very much! I'm using the "Next" color theme.
image

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