Hey, Avinash Dalvi
You tagged #angular so if its Angular 1 you can use $rootScope.
If you have access on the window object. In a bootstrap method you can save it in the window object.
// INDEX.js
const constants = {
fruit: 'orange',
type: 'orange'
};
window.myConstant = constants;
// HOME.js
let rootVar = window['myConstant'];
console.log(rootVar.fruit);