9

My first promise in Javascript !!!

Comments
  • 11
    "I promise to make your life absolutely miserable"

    --Javascript's promise to you.
  • 3
    Promise, callback and await all in one piece of code 👌
  • 0
    @2lazy2debug <--- listen to this guy
  • 0
    Im not a javascript person, but looks like you can just return the promise without awating it? Try remove the async keyword?

    (c#)
  • 3
    Running SQL queries direct from JS? 😬😬😬Maybe I’m too much of a traditionalist but back in my day we had something way more secure to handle that shit called the back end that ran on real strongly typed languages on real servers. But what do I know, I’m sure there’s a #yetanother JS library to do that for us now.
Add Comment