for(let i = 0; i < earliermockdata.length; i++) { if(earliermockdata[i].topic === 'coal' && checkrulescompliance(earliermockdata[i])) { restoretobeginning(); console.log('revealing the masked secrets in coal production processes that were intentionally hidden.'); }}