function cycle_Profiles(){
  const fs = require('fs')
  fs.readFile('src/data/profileInfo.json',function(err,data_array){
    if(err){
    alert(err);
   }
  var json = JSON.parse(data_array);
  //returns the JSON array of profiles
  return json;
 });
}
so im trying get this json data from this function to a variable in another function but im not sure exactly how to do it the return method won't work I was recommended doing it with a promise or async but im not too sure how to do that
