2023
Generating random numbers in JavaScript is easy once you understand how the built-in function to do this works but a lot of developers tend to write repetitive code rather than creating their own random number function which can be re-used.
There are two reasons why you might see the JSON parse error in your JavaScript code and, as a JavaScript developer, you need to know how to fix both of them.
Most people new to JavaScript get confused about the different types of events when trying to listen to input value changes and are not sure what they all do.
This is something that gets me everytime I’m setting up an Express app so I thought I would make a note here so I can (hopefully) remember this super simple thing for Express to get JSON body data.
I was in the process of setting up a few projects recently and wanted to try out using Plausible analytics rather the standard Google Analytics and I got a bit stuck configuring https access so thought I would document the process here.
I’ve done this before but someone asked me the other day on my YouTube channel how to host multiple Node apps on one server.
I found out the other day that wget doesn’t come installed by default with a MacOS setup.
So the other day I was trying to login to a server on Digital Ocean to make a few changes and then it dawned on me that the only active SSH key assigned to it was from my old Macbook which has since been wiped!