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 …
Launching portfolio website. Definitely been a long time coming but as I continue to work on the website and work on content I would like to share, at least I can say for now …