Pre-requisite knowledge Arrays Arrays are fundamental data structures in computer science, providing a convenient way to store and manipulate collections of elements. A sub-array is any contiguous block of an array. A contiguous block …
Coding diary to reflect concepts that I am learning and revisiting Promises console.log("A"); wait(1000).then(()=> { console.log("B"); }); console.log("C"); /* OUTPUT A C B (after 1 second) */JavaScript You can only can then() on functions …
Coding diary to reflect concepts that I am learning and revisiting Asynchronous callback functions like setTimeout are functions that don't run immediately but sometime in the future For example setTimeout(() => { console.log("One second …
Coding diary to reflect concepts that I am learning and revisiting Classical Inheritance vs Prototypical inheritance Prototypical inheritance allows you to create a new object and combine methods from other objects With classical inheritance …
Coding diary to reflect concepts that I am learning and revisiting Super keyword When you are inheriting another class but the constructor of the child has more parameters than the parent class employee { …
Coding diary to reflect concepts that I am learning and revisiting Combining filter (array method) and .length to find the total number of elements that are above or below a certain value (E.g. Given …