Error occurrence

Report a typo

Eli has created a backend for his app, now he wants to build the frontend. He decided to create another directory to keep his folders clean. He is sure he will have the assets folder inside frontend, so he ran this command, but received an error:

mkdir("frontend/assets")
  .then(() => console.log("Created a directory!"))
  .catch((err) => console.log(err));

This is the error he got:Error while running the index.js file in the console – no such file or directory, mkdir C:\Users\El\hyperskill\frontend\assets

Add something to Eli's code to fix it.

Enter a short text
___

Create a free account to access the full topic