Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Export Multiple Objects

// exporting the variable
export const name = 'JavaScript Program';

// exporting the function
export function sum(x, y) {
    return x + y;
}
 
PREVIOUS NEXT
Tagged: #Export #Multiple #Objects
ADD COMMENT
Topic
Name
7+4 =