Skip to content

clarify typeof alert behavior in non browser environment #3926

@parthodas23

Description

@parthodas23

The current page mentions:

typeof alert // "function"

But in Node.js / VS Code / terminal / online JS runners → alert does NOT exist. So it's gives undefined.

typeof alert // "undefined"
Image

It should mention about the about the Browser Console

typeof alert // "function" (Browser Console)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions