Skip to content

Commit

Permalink
JS Linked Lists: Update note about Node/ESM (#29263)
Browse files Browse the repository at this point in the history
* Update ESM note

* Use more specific note heading
  • Loading branch information
MaoShizhong authored Jan 6, 2025
1 parent 6c84efe commit a2cacd7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion javascript/computer_science/project_linked_lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ For a more thorough explanation, use these resources:

<div class="lesson-content__panel" markdown="1">

If you wish to use multiple ES6 modules, remember that Node uses CommonJS modules by default and so you must [tell Node to use ES6 modules](https://blog.logrocket.com/commonjs-vs-es-modules-node-js/) instead.
<div class="lesson-note" markdown="1">

#### Running ES6 modules in Node

Node v22 (which became LTS in October 2024) can now automatically detect ES6 modules and run them without any further configuration. If you are using ES6 modules and run into errors due to Node not recognising the syntax, make sure you [update Node to the latest LTS version](https://www.theodinproject.com/lessons/foundations-installing-node-js#installing-node).

</div>

You will need two classes or factories:

Expand Down

0 comments on commit a2cacd7

Please sign in to comment.