There is another JS-file with a function.
Let this function return an inverted value.
This file is a separate module.
The module exports the inverse function.
In the main script we import the inverse function from the helper module.
Let’s use it and log out the inverted value of 2.
I hope you found this article useful, if you need any help please let me know in the comment section.
👋 See you next time. Have a nice day!
Subscribe to our channel: