Rrrkjonnapalliinseed.hashnode.dev·Apr 9, 2023 · 1 min readCreating a local https serverI'm just going to create a simple https server here to show how it works /* index.js install express to test this */ const express = require('express'); const path = require('path'); const fs = require('fs'); const https = require('https'); const a...00
Rrrkjonnapalliinseed.hashnode.dev·Apr 24, 2020Quick SortSorting is also known as arranging a list of items in an order either ascending or descending. Even though worst case time complexity for quick sort is O(n^2), average time complexity is O(n log n). Worst case for quick sort is reverse sorted list. T...00
Rrrkjonnapalliinseed.hashnode.dev·Apr 24, 2020Destructuring in JavascriptDestructuring Lets try Object destructuring. Lets dive right in. /* old-assignment.js */ /* Assume you have a object like this */ let user = { firstName: "Tom", lastName: "Cruise", email: "tomcruise@gmail.com" } let firstName = user.fi...00
Rrrkjonnapalliinseed.hashnode.dev·Apr 23, 2020Callbacks, Promises and Async/AwaitCallbacks A callback function is a function(F1) passed into another function(F2) as an argument, which is then invoked inside the function(F2) to complete some kind of action. In the end callbacks are nothing but functions. But there are some best p...01