Sorting an Array of Objects in JavaScript
So, let’s say you have a large Array of Objects, looking like this (snippet) Now you want to sort these Objects in ascending or descending order, based on the key: timestampThat’s very easy, and you …
So, let’s say you have a large Array of Objects, looking like this (snippet) Now you want to sort these Objects in ascending or descending order, based on the key: timestampThat’s very easy, and you …
Here’s a quiz for you (the answer is at the bottom of the post). What is the expected output of these three lines of code, and why is it like that? This isn’t as straight …
This is just a very short post, but this is the absolute simplest JavaScript code I have made, for a coinflip function How simple is that?We define a function that simply returns Heads or Tails …
So.. If you’re reading this, then you’re most likely looking for information on how to create a Twitter bot, using NodeJS and JavaScript.Well, look no further; This article will detail everything you need to get …
This is not a coding post, simply a small update because I haven’t posted in ages.I have in the past week rewritten CodeLog bot, taking some inspiration from other bots. I have stopped using Sequelize …
Remember that old Magic 8 ball that launched in the 1950’s? Well, I’m not that old, but I remember them from the movies in the 80’s and 90’s. I remember I always wanted one, but …
I came across a funny little piece of code that integrates a HUGE database of all the different Pokémons. You can make API calls and get back data from the site in JSON format. I …
This article assumes that you have already read the article: https://codelog.network/2020/08/14/discord-js-with-sequelize-and-mysql/ and that you have followed those steps to connect to you MySQL database. The console.log() should have output Logged in to DB. From there …