The fs.mkdir() method is used to create directories in Node.js. It takes the directory path as an argument and an optional callback function to handle errors. Here's an example:
0-2 years experience
2-5 years experience
5-8 years experience
8+ years experience