Ankit Guria
Ankit Guria
Try the async approach: ``` const fs = require('fs').promises; async function listDirectoryRecursive(directory) { try { const dirents = await fs.readdir(directory, { withFileTypes: true }); for (const dirent of dirents) {...
Use the new keyword when creating a new Set instance: ``` let s = new Set(); s.add("OldestIssueOnNodeJS"); console.log(s); ```
To address this issue, you can manually reset the variable by using the delete keyword to remove it from the global scope. ``` let x; try { x = ;...