What is function createServer(requestListener?: RequestListener):server?

I am new to NodeJS.
I am not very familiar with this statement:function createServer(requestListener?: RequestListener):server. Why does this method have :server, and why are the parameters inside not separated by commas, but uses ?:?

Any ideas on how to fix this problem

456 thoughts on “What is function createServer(requestListener?: RequestListener):server?”

  1. Excellent goods from you, man. I have understand your stuff
    previous to and you’re just too fantastic. I actually like what
    you have acquired here, certainly like what you are
    stating and the way in which you say it. You make it enjoyable
    and you still take care of to keep it sensible. I can not wait to read much more from you.

    This is actually a terrific website.

    Reply
  2. I simply couldn’t leave your site prior to suggesting that I actually enjoyed the usual info a person supply for
    your visitors? Is gonna be back regularly in order to check up on new posts

    Reply
  3. I’ve been browsing on-line more than 3 hours as
    of late, yet I never found any attention-grabbing article like yours.
    It is pretty value sufficient for me. In my view, if all
    site owners and bloggers made excellent content material
    as you did, the web will be a lot more helpful than ever before.

    Reply
  4. Hey! I know this is kinda off topic however I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest
    authoring a blog post or vice-versa? My website covers a lot
    of the same topics as yours and I feel we could greatly benefit from each other.
    If you happen to be interested feel free to shoot me an email.
    I look forward to hearing from you! Fantastic blog by the way!

    Reply
  5. I love your blog.. very nice colors & theme. Did you create this website yourself
    or did you hire someone to do it for you? Plz respond as I’m looking
    to construct my own blog and would like to find out where u got this from.
    kudos

    Reply
  6. Heya are using WordPress for your blog platform?

    I’m new to the blog world but I’m trying to get started and create my own. Do you require any coding expertise to
    make your own blog? Any help would be really appreciated!

    Reply
  7. Today, I went to the beach front with my kids. I found
    a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.”
    She placed the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear.

    She never wants to go back! LoL I know this is completely off topic but I
    had to tell someone!

    Reply
  8. Its like you read my mind! You seem to know so much about this,
    like you wrote the book in it or something. I think that you could do with a few pics to drive the message home a bit, but
    other than that, this is great blog. A great read. I will definitely be back.

    Reply
  9. Thanks for your marvelous posting! I quite enjoyed reading it, you may be a great author.I
    will be sure to bookmark your blog and will eventually come
    back sometime soon. I want to encourage you to continue your
    great writing, have a nice evening!

    Reply
  10. We stumbled over here from a different website and thought I might check things out.
    I like what I see so now i am following you. Look forward to going
    over your web page repeatedly.

    Reply
  11. The other day, while I was at work, my cousin stole my iphone and tested to see
    if it can survive a 40 foot drop, just so she can be a youtube
    sensation. My iPad is now broken and she has 83 views.
    I know this is totally off topic but I had to share it with someone!

    Reply
  12. We’re a bunch of volunteers and opening a brand new scheme in our community.
    Your web site provided us with useful info to work on. You’ve performed an impressive job
    and our entire group will likely be grateful to you.

    Reply
  13. Awesome issues here. I am very happy to look your
    post. Thanks so much and I am taking a look ahead to touch you.
    Will you kindly drop me a mail?

    Feel free to visit my blog post … coupon

    Reply
  14. Hello I am so delighted I found your blog, I really found you by accident, while I
    was browsing on Aol for something else, Nonetheless I am here now and
    would just like to say thanks a lot for a fantastic post
    and a all round interesting blog (I also love the theme/design),
    I don’t have time to browse it all at the moment but I have bookmarked it
    and also added your RSS feeds, so when I have time I will be back to read more, Please do keep up the great job.

    Reply
  15. I feel that is among the most significant information for me.
    And i’m satisfied studying your article. However should statement on some common things, The website taste is
    perfect, the articles is actually nice : D. Just right process, cheers

    Reply
  16. You actually make it seem so easy together with your presentation but I in finding this topic to
    be really something which I believe I’d by no means understand.

    It kind of feels too complex and very extensive for me.
    I’m looking forward on your subsequent submit, I’ll attempt to get the hang of
    it!

    Reply

Leave a Comment