how can I access data from a JSON file when am working in JS file
thank you
you can use the built-in file system module
const fs = require("fs") const school_data = JSON.parse(fs.readFileSync("school_data.json")) console.log(school_data)
@MrEconomical thank you
you can use the built-in file system module
@MrEconomical
thank you