I am trying to access JSON object in JavaScript file but in meantime it give me an error that Uncaught SyntaxError: Unexpected identifier. I am new to JavaScript could some please help me how to solve this problem. I will also share JSON and JS file code you may explore code there.
Main.JS
import Lang from "./lang";
console.log(Lang["dashboard.paragraph"]);
Lang.JS
module.exports = {
/* 01.Dashboard */
"dashboard.title": "Dashboard",
"dashboard.paragraph": " Here you will put data related to Dashboard Page",
};
module.exports