HomeProjects
 
  
🔍

How to handle boolean values in SQLite using JavaScript Proxies

March 22, 2022

If you've ever worked with SQLite, you should be aware of the supported data types and Boolean isn't one of them.

read more →

2021
2020

Creating a linked list in JavaScript

December 20, 2020

In layman's terms, a linked list is a list of nodes, where each node holds two things: a value and a pointer to the next node in the list. Let's see how we can implement one using JavaScript.

read more →

Arrays passed to template literals get coerced to strings

December 4, 2020

Nice little thing I learned today: When you pass an Array as a value to a template literal, it gets implicitly coerced into a String. Behind the scenes String.prototype.concat is used, as stated in the ECMA-262 specification document.

const fruits = ['apples', 'oranges'];
console.log(`${fruits}`); // 'apples,oranges'

 

© 2024. Made with ♡ by me :)