Why should I export my code in a file to another file when I can simply copy and paste the entire code to another file(even when it is a very big file)?

What is the purpose of it? And why can’t I copy-paste?

If then you need to make a change to your code, you will need to find all the places you copied the code to. Which increases the change of bugs, reduces maintainability and separation of concerns.

1 Like

Ohh, ok thank you so much