Skip to content

Instantly share code, notes, and snippets.

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? β˜†β˜†

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com

Commands
------------
1. Build Docker Image
docker build -t test .
2. Run container /w image
docker run -d --publish 8888:5000 test
3. Login to ECR
aws ecr get-login-password --region REGIONHERE!!!! | docker login --username AWS --password-stdin ACCOUNTIDHERE!!!!.dkr.ecr.REGIONHERE!!!.amazonaws.com
@abhiram11
abhiram11 / hello_world.sol
Last active November 23, 2021 03:25
Web 3.0 Learning 1 Tanay Stream
pragma solidity >=0.7.0 <0.9.0;
contract Kudos {
int startingNumber;
function setStartingNumber(int startNum) public {
startingNumber = startNum;
}
function getSum(int numToAdd) public view returns (int) {