Removing a directory

Report a typo

Imagine we have a styles folder that has the main folder inside of it. Take a look at this code and figure out what will be the result.

const { rmdir } = require("node:fs/promises");

const rmDir = async () => {
  await rmdir("styles/main");
};

rmDir();
Select one option from the list
___

Create a free account to access the full topic