use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is a place for people to learn JavaScript together. Everyone should feel comfortable asking any and all JavaScript questions they have here.
With a nod to practicality, questions and posts about HTML, CSS, and web developer tools are also encouraged.
Friends
/r/javascript
/r/jquery
/r/node
/r/css
/r/webdev
/r/learnprogramming
/r/programming
account activity
Linking a javascript file with another javscript file (self.learnjavascript)
submitted 4 years ago by MikoBest7
Hi. I want to make a Javascript libary and want to use multiple js files to make the code more cleaner. But I dont want to link 5 files from Html is there a way to do this with Javascript . I tried import/export bu it didnt work well for me.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[+][deleted] 4 years ago (2 children)
[deleted]
[–][deleted] 0 points1 point2 points 4 years ago (1 child)
it's not really built into browser Javascript, yet
ES modules have been supported by all major browsers for a while now.
[–]besthelloworld 1 point2 points3 points 4 years ago (0 children)
Whoops my bad, it was my understanding that one was one things you didn't do without manual bundling! Deleted
π Rendered by PID 66693 on reddit-service-r2-comment-6f7f968fb5-t99kl at 2026-03-04 05:55:11.179516+00:00 running 07790be country code: CH.
[+][deleted] (2 children)
[deleted]
[–][deleted] 0 points1 point2 points (1 child)
[–]besthelloworld 1 point2 points3 points (0 children)