Skip to content

Difference between importing and requiring? #738

Answered by krakxn
369-shar-block asked this question in Q&A
Discussion options

You must be logged in to vote

We use import for vanilla JavaScript and derivatives; and require is primarily used in Node.js. The use/meaning is the same for both of them though, just different syntax.
Hope this helps!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@369-shar-block
Comment options

@krakxn
Comment options

@Adnanebds
Comment options

Answer selected by 369-shar-block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants