Skip to content

Discrepancy in typeof(alert) Result in JavaScript Tutorial #3666

Closed
@Aditya-Ramachandran

Description

@Aditya-Ramachandran

Description

In the tutorial, it states that the result of typeof(alert) is a funciton, but when I tested this on my local machine and another online JavaScript compiler (Programiz), the result was consistently undefined. This inconsistency is causing confusion, and I believe there might be an error in the tutorial content.

Expected Result:

The tutorial should accurately represent the result of typeof(alert) to avoid confusion among learners.

Actual Result:

The tutorial claims the result of typeof(alert) is a funciton, but real-world testing yields 'undefined'.

Screenshots

From testing it on my machine:
Screenshot 2024-02-10 200551

From the tutorial:
Screenshot 2024-02-10 201635

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions