javascript-tutorial / javascript-tutorial/en.javascript.info
clarification: imports from path/to/module !?
- Dominant language
- HTML
- Stars
- 25.5k
- Forks
- 4k
- PR merge metrics
- No merged PRs in 30d
Description
In the summary of the [import-export chapter](https://javascript.info/import-export#summary) they use `... from "module"`.
Wouldn't it be more correct to write `... from "path/to/module"` or something like that?
Isn't that the essential point of `export`/`import ... from ...` - that it requires a relative/absolute path and not just a file name?!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the import-export chapter's linked Summary section and compare its `... from "module"` examples with the chapter's explanation of module paths. Done means the summary accurately clarifies whether imports require relative or absolute paths, without contradicting the surrounding tutorial.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100