Skip to content

playground minimal code #705

@joanillo

Description

@joanillo

Just for clarifying, I want to test in playground this minimal code:

const linkedList = new LinkedList();
linkedList.append('aaa');
linkedList.append('bbb');
console.log(linkedList.reverse().toString());

I got it, but I needed some changes:
-adding "type": "module"," in my package.json
-adding extension .js in my imports
-finally executing: $ node src/playground/playground.js

but must be easier, I think I'm missing something (sure because my lack of knowledge about ES6 modules).
May be it is a good idea to clarify this point at README. TIA

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy