Sign up for Free !!
World's first open source developer community with
Ticketing System
Is there something in JavaScript similar to @import in CSS that allows you to include a JavaScript file inside to another JavaScript file?
@import
import {variables, function name} from ' file path '
export { variables, function name } --> add this line in the file which you want to export
Please Login/Register to write your answer !!!
import {variables, function name} from ' file path '
export { variables, function name } --> add this line in the file which you want to export