Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

exporting functions

//myfile.js
export function fn1() {...} 
export function fn2() {...} 
import * as MyFn from blabla
                       myFn.fn1();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #exporting #functions
ADD COMMENT
Topic
Name
3+1 =