Help with NodeJS work

Help with NodeJS work
0

#1

Hi, I need some help with node.JS- not for freecodecamp but for a school project.


#2

Hi, I can’t see your code. Also, do you have any particular questions?


#3

Hi
I’ve edited to show my current code.
I’m very lost in regard to:

  1. I’ve returned a ServerObj, great. How do I apply this to the use function?
  2. There seem to never be any declaration of request\response variables coming to any function, so I’m not understanding how should the middleware use it.
  3. the whole logic of middlewares is unclear to me: Whats the purpose of storing them in an array? Are they not supposed to be acted upon once summoned?

Thank you very much