Latest in: Coding Diary

Generating all the sub-arrays of an array

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 …
gravatar
By Ranti
 · 
February 10, 2023

Coding Diary: JavaScript Learning Log 5

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 …
gravatar
By Ranti
 · 
February 10, 2023

Coding Diary: JavaScript Learning Log 4

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 …
gravatar
By Ranti
 · 
February 8, 2023

Coding Diary: JavaScript Learning Log 3

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 …
gravatar
By Ranti
 · 
February 6, 2023

Coding Diary – JavaScript Learning Log 2

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 { …
gravatar
By Ranti
 · 
February 4, 2023

Coding Diary: JavaScript Learning Log 1

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 …
gravatar
By Ranti
 · 
February 3, 2023
View