var typeOfUser = require('../js/type.js');
var typeOfUser = require('./js/type.js');
var typeOfUser = require('./type.js');
None of the above lines (written within a file named dashboardJS.js situated in folder named js) are working. require here is not working. The folder structure is:
Project_on_dairy/MDMS/js/type.js
Project_on_dairy/MDMS/js/dashboardJS.js
require("type.js")require('./type.js');?