Rotate an Array

April 17, 2022 amit 0

OVERVIEW We see how to rotate elements in an array both right and left a certain number of times. We use the mod operator to […]

Javascript – Promises

April 12, 2022 amit 0

OVERVIEW Promises are a way of handling asynchronous events in javascript. Prior to promises, the only true asynchronous feature was in XMLHttpRequest where ajax calls […]

Doing a Merge Sort

March 19, 2022 amit 0

The code below uses Merge Sort to sort an array of integers The output is shown below 6,78,19,54,32,-9,-10,87,12,31, divide() – 0,9 mid=4 divide() – 0,4 […]

Javascript – Destructuring

March 7, 2022 amit 0

OVERVIEW Destructuring is a feature which allows us to unpack values from arrays or properties from objects without having to write statements for them. In […]

Javascript Arrow function

March 5, 2022 amit 0

OVERVIEW The arrow function acts somewhat like the lamdba expression in Java. It allows you to define functions in a shorthand syntax. The sample code […]