Skip to content

How to instance classes? #1

@Androz2091

Description

@Androz2091

Hello, I want to now if it's possible to create a new instance of a class from a js file. And if it's possible to add it if it's actually impossible.
Here is my code:

HAI
    CAN HAS MYPACKAGE "myPackage.js"
    I HAS A CLIENT ITZ MYPACKAGE 'Z Client
    VISIBLE CLIENT BTW  class Client extends AnotherClass {...
    CLIENT WIZ ENUF BTW TypeError: Class constructor Client cannot be invoked without 'new'
KTHXBYE

Please I really need this feature 🙏

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