Created
July 2, 2017 11:42
-
-
Save Parassharmaa/713ff3136957b00bd7aa8b46b2d1132f to your computer and use it in GitHub Desktop.
Asynchronous nature of javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const https = require("https") | |
| // https request to api server | |
| https.get("https://api.github.com/users/parassharmaa", (response) => { | |
| //callback function which is asynchronous and non-blocking | |
| console.log(response.statusCode); | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment