-
Notifications
You must be signed in to change notification settings - Fork 2
AmirHossein-NodeJS-Week3 #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good. Please see my comments
printChuckNorrisJoke().then(data => console.log(data)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I won't do it this way. It is a bit difficult to read. Also, as far as I see, the return value data
is not a promise. Does this code work?
In this case you don't really need a return. As the name of the function suggests, print
is in it so just console inside the function
No description provided.