Skip to content

Instantly share code, notes, and snippets.

@Parassharmaa
Created July 2, 2017 11:42
Show Gist options
  • Select an option

  • Save Parassharmaa/713ff3136957b00bd7aa8b46b2d1132f to your computer and use it in GitHub Desktop.

Select an option

Save Parassharmaa/713ff3136957b00bd7aa8b46b2d1132f to your computer and use it in GitHub Desktop.
Asynchronous nature of javascript
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