How to write the solution of this question using node js

Create a module shapes.js to calculate areas of various shapes.

  • square (public function) – makes use of Rectangle function to calculate area
  • rectangle (private function)
  • circle (public function)
  • PI (private variable)
    Make use of this module in another module (i.e. file)

How to make private function and use it in other function and how to import them.