How can I declare a variable as a function as well as assign values to it

I tried this:

 var fun = function(){ console.log("booyah"} , {
  hell: function(){
    console.log("hello");
  },
  boy: ()=>{
    alert("blah");
  }
};
fun.boy();

I want that first I call fun function and then Access functions I have stored as objects. But I am getting errors . How can I fix it? Or is there any other way to do that?
Please help.

554 thoughts on “How can I declare a variable as a function as well as assign values to it”

  1. What i do not realize is in truth how you are not actually much more smartly-favored than you may be now. You are so intelligent. You realize therefore considerably in relation to this matter, made me in my view consider it from numerous varied angles. Its like women and men are not fascinated unless it is one thing to accomplish with Woman gaga! Your individual stuffs excellent. All the time care for it up!

    Reply
  2. Pingback: keto creamer
  3. First of all I would like to say superb blog! I had a quick question which I’d like to ask if you do not mind.
    I was interested to find out how you center yourself and clear your mind prior
    to writing. I have had trouble clearing my mind in getting my thoughts out
    there. I do enjoy writing however it just seems like the first 10 to 15 minutes are
    wasted just trying to figure out how to begin. Any recommendations or hints?
    Kudos! http://herreramedical.org/prednisone

    Reply
  4. I just could not go away your web site prior to suggesting that I actually enjoyed the usual information a person supply on your visitors? Is gonna be again regularly to check up on new posts.

    Reply
  5. I really love your blog.. Very nice colors & theme. Did
    you develop this site yourself? Please reply back as I’m wanting to create
    my own personal site and want to learn where you got this from
    or what the theme is named. Cheers!

    Reply
  6. Hi there I am so thrilled I found your web site, I really found you by mistake, while I was researching on Digg for something
    else, Anyways I am here now and would just like to say cheers
    for a tremendous post and a all round entertaining blog (I
    also love the theme/design), I don’t have time to look over it all at
    the minute but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read a lot more,
    Please do keep up the excellent job.

    Reply
  7. Pretty nice post. I just stumbled upon your blog
    and wished to say that I have truly enjoyed browsing your blog posts.
    In any case I’ll be subscribing to your feed and I hope you write again very soon!

    Reply
  8. Hey! I know this is kinda off topic but I was wondering which blog platform are you using for this website?
    I’m getting tired of WordPress because I’ve had issues with hackers and I’m looking at alternatives for
    another platform. I would be fantastic if you could point me in the direction of a
    good platform.

    Reply
  9. Simply want to say your article is as astonishing.
    The clarity in your post is simply spectacular and i can assume you’re
    an expert on this subject. Fine with your permission let me to grab your feed to keep up to date with forthcoming post.
    Thanks a million and please keep up the gratifying work.

    Reply
  10. Pingback: gay female dating
  11. Howdy just wanted to give you a quick heads up and let you know a few of the images aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different internet browsers and both show the same results.

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

    Reply
  13. This design is steller! You most certainly know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Great job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!

    Reply
  14. Hello there! This post could not be written any better! Reading through this post reminds me of my previous room mate! He always kept chatting about this. I will forward this page to him. Fairly certain he will have a good read. Thanks for sharing!

    Reply
  15. Does your site have a contact page? I’m having trouble locating it but,
    I’d like to send you an e-mail. I’ve got some ideas for your blog you
    might be interested in hearing. Either way, great website and I
    look forward to seeing it improve over time.

    Reply
  16. Hey I am so delighted I found your blog, I really found you by error, while I was researching on Askjeeve for something else, Anyways I am here now and would just like to say kudos for a incredible post and a all round thrilling blog (I also love the theme/design), I don’t have time to read through it all at the moment but I have saved it and also included your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent job.

    Reply
  17. What i don’t realize is in reality how you are not
    actually much more well-appreciated than you might be now.
    You’re so intelligent. You know therefore considerably in terms of this matter, made me personally consider it from a lot of various angles.
    Its like women and men don’t seem to be interested until it is one thing to accomplish with Woman gaga!
    Your own stuffs outstanding. Always take care of it up!

    Reply
  18. Just desire to say your article is as astonishing.
    The clearness for your submit is just nice and that
    i can assume you are knowledgeable in this subject.
    Well together with your permission let me to snatch your RSS feed to stay updated with forthcoming post.
    Thanks a million and please carry on the rewarding work.

    Reply
  19. obviously like your website but you have to check the spelling on several of your posts.
    Many of them are rife with spelling problems and I find it
    very bothersome to tell the reality nevertheless I’ll certainly come back again.

    Reply
  20. It is appropriate time to make a few plans for the long run and
    it is time to be happy. I’ve learn this publish and if I may I want to suggest you some attention-grabbing issues or advice.
    Perhaps you can write next articles referring to this article.
    I desire to learn even more issues about it!

    Reply
  21. Just desire to say your article is as astounding. The clarity for your
    put up is simply cool and i can assume you are an expert on this subject.
    Well along with your permission let me to grasp your RSS feed to keep up to date
    with approaching post. Thank you a million and please continue the enjoyable work.

    Reply
  22. My partner and I stumbled over here coming from a different page and thought I
    should check things out. I like what I see so
    now i’m following you. Look forward to finding out about your web page for a second time.

    Reply
  23. Excellent post. I used to be checking constantly this blog and I am impressed!

    Very helpful information specifically the ultimate section :
    ) I maintain such information a lot. I used to be looking for this certain info for a very lengthy time.
    Thank you and good luck.

    Reply
  24. Oh my goodness! Awesome article dude! Many thanks, However I am encountering
    difficulties with your RSS. I don’t know why I cannot join it.
    Is there anyone else having identical RSS issues?
    Anyone who knows the answer can you kindly respond?

    Thanx!!

    Reply
  25. Fantastic blog! Do you have any tips and hints for aspiring
    writers? I’m hoping to start my own website soon but I’m a little lost on everything.
    Would you suggest starting with a free platform like WordPress or go for a paid option? There are so many choices
    out there that I’m totally confused .. Any ideas?
    Thanks a lot!

    Reply
  26. Awesome website you have here but I was wanting to know if you knew of any user discussion forums that cover the same topics discussed in this article?
    I’d really like to be a part of online community where I can get advice from other
    experienced individuals that share the same interest. If you have any recommendations, please let me know.
    Bless you!

    Reply
  27. I’m extremely impressed together with your writing skills as well as with the structure on your blog. Is that this a paid subject matter or did you modify it yourself? Either way keep up the nice high quality writing, it’s rare to look a nice blog like this one today..

    Reply
  28. Great post. I used to be checking continuously this blog and I am impressed!
    Extremely helpful info particularly the final part :
    ) I care for such information much. I used to be looking for this certain info for a long time.
    Thank you and best of luck.

    Reply
  29. Hi, I do think this is a great web site. I stumbledupon it
    😉 I am going to revisit yet again since I bookmarked it.
    Money and freedom is the greatest way to change, may you be rich
    and continue to guide others.

    Reply
  30. I was extremely pleased to discover this web site.
    I wanted to thank you for your time due to this fantastic read!!
    I definitely savored every little bit of it and I have
    you saved as a favorite to see new stuff in your blog.

    Reply
  31. Hi I am so grateful I found your site, I really found you by accident, while I was researching on Bing for something else, Nonetheless I am
    here now and would just like to say many thanks for a tremendous post and a all
    round thrilling blog (I also love the theme/design), I don’t have time to browse it all at the moment but I have book-marked it
    and also included your RSS feeds, so when I have time I will be back to
    read a lot more, Please do keep up the superb work.

    Reply
  32. Greetings! This is my first visit to your blog! We are a collection of volunteers and starting a new initiative in a community in the same niche.
    Your blog provided us valuable information to work on. You have done a extraordinary job!

    Reply
  33. Excellent goods from you, man. I’ve understand your stuff previous to and
    you’re just too great. I actually like what you’ve acquired here, really 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 wise.
    I cant wait to read far more from you. This is actually a tremendous site.

    Reply
  34. Hello there! I know this is kinda off topic but I was wondering which
    blog platform are you using for this website? I’m getting tired of WordPress because I’ve had problems
    with hackers and I’m looking at options for another platform.
    I would be fantastic if you could point me in the direction of a
    good platform.

    Reply
  35. Howdy! Do you use Twitter? I’d like to follow you if that would
    be ok. I’m undoubtedly enjoying your blog and look forward to
    new updates.

    Stop by my web-site; 2022

    Reply
  36. Pretty part of content. I just stumbled upon your web site and in accession capital to assert that I acquire
    in fact loved account your blog posts. Anyway I’ll be subscribing in your feeds and even I achievement you get admission to constantly quickly.

    Reply
  37. That is very fascinating, You are a very skilled blogger.
    I have joined your feed and sit up for seeking extra of your magnificent post.
    Additionally, I have shared your site in my social networks

    Reply
  38. I was recommended this bⅼog by my cousin. I’m not sure whеther this post іs written by him aѕ
    no one else know suucһ detailed about my problem.

    You are incredible! Thanks!

    Reply
  39. I really like what you guys are usually up too.
    This type of clever work and coverage! Keep up the awesome
    works guys I’ve incorporated you guys to my own blogroll.

    Reply
  40. Nice blog here! Also your website loads up fast! What web host are you
    using? Can I get your affiliate link to your host?
    I wish my website loaded up as quickly as yours lol

    Reply
  41. Link exchange is nothing else but it is only placing the other person’s website link on your page at suitable place and other
    person will also do same in support of you.

    Reply
  42. Hello! Quick question that’s completely off topic.
    Do you know how to make your site mobile friendly?
    My site looks weird when viewing from my iphone 4. I’m
    trying to find a theme or plugin that might be able
    to fix this issue. If you have any suggestions,
    please share. Cheers!

    Reply
  43. Undeniably imagine that that you stated. Your favorite reason seemed to be on the
    net the easiest thing to have in mind of. I say
    to you, I certainly get irked whilst folks think about issues that they just do not realize about.
    You controlled to hit the nail upon the highest and also defined out the
    whole thing with no need side effect , folks can take a
    signal. Will probably be back to get more. Thank you

    Reply
  44. Hi! I could have sworn I’ve been to your blog before but after looking at some of the posts I realized it’s new to me.

    Anyhow, I’m definitely delighted I found it and I’ll be bookmarking it and checking back often!

    Reply
  45. Wow that was odd. I just wrote an extremely long comment but after I clicked submit my comment didn’t appear.
    Grrrr… well I’m not writing all that over again. Anyways, just wanted to say great blog!

    Reply
  46. Everything published was very reasonable. But, consider this, suppose you added a little information? I mean,
    I don’t wish to tell you how to run your website, but
    suppose you added a post title that makes people want more?
    I mean How can I declare a variable as a function as well as assign values to it – JavaScript
    Help is a little boring. You should peek at
    Yahoo’s front page and note how they create article headlines
    to grab viewers to open the links. You might try adding a video or a pic or two to grab
    readers excited about what you’ve got to say. In my opinion, it would
    bring your blog a little bit more interesting.

    Reply
  47. My spouse and I stumbled over here by a different website and
    thought I might as well check things out.
    I like what I see so i am just following you.
    Look forward to checking out your web page again.

    Reply
  48. Thank you for the good writeup. It actually was a entertainment account it.

    Glance complex to more introduced agreeable from you! However,
    how could we keep up a correspondence?

    Reply
  49. I’m impressed, I must say. Rarely do I encounter a blog that’s both educative and
    amusing, and without a doubt, you have hit the nail on the head.
    The problem is something too few people are speaking
    intelligently about. I am very happy that I found this in my hunt for
    something concerning this.

    Reply
  50. Thanks for the marvelous posting! I quite enjoyed reading
    it, you might be a great author. I will ensure that I bookmark your blog
    and will come back very soon. I want to encourage one to continue your great job, have
    a nice holiday weekend!

    Reply
  51. Please let me know if you’re looking for a article writer for your blog.

    You have some really great posts and I feel I would be a good asset.

    If you ever want to take some of the load off, I’d absolutely love to write some articles for your blog in exchange for a link back to mine.

    Please blast me an e-mail if interested. Regards!

    Reply
  52. Oh my goodness! Incredible article dude! Many thanks, However I am encountering problems with
    your RSS. I don’t understand why I cannot join it. Is there anybody getting the same RSS issues?
    Anybody who knows the solution can you kindly respond? Thanks!!

    Reply
  53. Hi, Neat post. There’s an issue along with your site in internet
    explorer, may test this? IE still is the marketplace leader and a large component of other people will leave out your great writing because of this problem.

    Reply
  54. I have been looking for articles on these topics for a long time. baccaratsite I don’t know how grateful you are for posting on this topic. Thank you for the numerous articles on this site, I will subscribe to those links in my bookmarks and visit them often. Have a nice day

    Reply
  55. As I am looking at your writing, casinosite I regret being unable to do outdoor activities due to Corona 19, and I miss my old daily life. If you also miss the daily life of those days, would you please visit my site once? My site is a site where I post about photos and daily life when I was free.

    Reply