Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
JavaScript
/
Modules
In Node 24, what primarily determines whether app.js is ESM or CommonJS?
from Modules
Node 24
beginner
2 min
In Node 24, what primarily determines whether app.js is ESM or CommonJS?
The type field in the nearest parent package.json
Whether the file contains an import declaration
Whether package-lock.json exists
The current working directory name
Check
Ask AI about this kata
Report an error
next kata
What does this program print?
Predict the output
A new version is available
Reload