How do I include a JavaScript file in another JavaScript file?

Submitted 3 years, 5 months ago
Ticket #306
Views 261
Language/Framework Javascript
Priority Low
Status Closed

Is there something in JavaScript similar to @import in CSS that allows you to include a JavaScript file inside to another JavaScript file?

Submitted on Nov 24, 20

If your issue resolved, Please go ahead and update ticket status!! - Anonymous 3 years, 4 months ago
add a comment

1 Answer

Verified

import {variables, function name} from ' file path '

export { variables, function name } --> add this line in the file which you want to export

Submitted 3 years, 5 months ago


Latest Blogs