Answers for "js change a value in separate module"

0

js change a value in separate module

//moduleA.js
let object = {
    a: 5,
};

export { object };

//moduleB.js
import { object } from './moduleA'

object.a = 6;
object.b = 1;
Posted by: Guest on October-12-2020

Code answers related to "js change a value in separate module"

Code answers related to "Javascript"

Browse Popular Code Answers by Language