Skip to content

Instantly share code, notes, and snippets.

View temitopeakin1's full-sized avatar
πŸ’­
Nerd

Temitope Akinmegha temitopeakin1

πŸ’­
Nerd
View GitHub Profile

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

class Node {
public int value;
public Node left, right;
public Node(int value, Node left, Node right) {
this.value = value;
this.left = left;
this.right = right;
}
}
@temitopeakin1
temitopeakin1 / ChangeUsername.md
Created May 21, 2022 21:20 — forked from ifindev/ChangeUsername.md
Random React Test

This application should allow the user to update their username by inputting a custom value and clicking the button.

The Username component is finished and should not be changed, but the App component is missing parts. Finish the App component so that the Username component displays the inputted text when the button is clicked.

The App component should use the React.useRef Hook to pass the input to the Username component for the input element and for the Username component.

For example, if the user inputs a new username of "John Doe" and clicks the button, the div element with id root should look like this:

<div><button>Change Username</button><input type="text"><h1>John Doe</h1></div>