This is my humble collection of code pieces and snippets that I have found interesting or handy at some point in my work, or maybe just don't see any reason to remember it. Use tags and filters to find what you are interested in.
A short reminder about ways to traverse and manipulate DOM elements.
The ?. operator is like the . chaining operator, except that instead of causing an error if a reference is nullish (null or undefined), the expression short-circuits with a return value of undefined.
It returns its right-hand side operand when its left-hand side operand is null or undefined, and otherwise returns its left-hand side operand. Good to set up backup value in case of invalid main value.
Consider being neat pure greatly house something visit weather agreed saved be talking warmly offer want. Consider being neat pure greatly house something visit weather agreed saved be talking warmly offer want.
Express.js basic server boilerplate with mongoose, Body parser and EJS included.
2 important functions of Next.js are meant for a server-side generation. Here is an example of how to use it.
Client to use with Next.js for queries to GraphQL API
A bit of code to manage focus state in a form with multiple fields
Filtering for Boolean will remove all 'null' and 'undefined'