I like having this website (www.geektechstuff.com) hosted, but at times I also need a local website for testing whatever I'm looking at at the time (e.g. JavaScript). Previously I've just thrown a few lines of HTML down leaving a very sparse looking page that may (or may not) demonstrate the functions I'm looking at but … Continue reading Building A Testing Site (HTML, CSS, JavaScript)
Category: Javascript
Using SQL With JavaScript Part 1 – Installing SQL, Node.js, Creating a Connection and Creating A Database
A little while ago I completed a SQL database course via FutureLearn (it's a free course if you want to learn some SQL) to brush up on my SQL knowledge. Today I am going to use Javascript (via Node.Js) to connect to SQL and create a database. Installing SQL I am using Raspberry Pi OS … Continue reading Using SQL With JavaScript Part 1 – Installing SQL, Node.js, Creating a Connection and Creating A Database
Credit Card Number Checker (JavaScript)
Credit card details are frequently used online and you may be wondering how a website checks if a card number is legitimate or not. During my CodeAcademy “Back-End Engineer” I have tackled the Credit Card Checker project which involves using the Luhn algorithm to check credit card numbers. Quoting Wikipedia (https://en.wikipedia.org/wiki/Luhn_algorithm#Description): “Each of the numbers … Continue reading Credit Card Number Checker (JavaScript)
30 Day Coding Challenge & Personal Update 2020
I live in a part of the UK that has been under restrictions since March (with a few unrestricted weeks at the beginning of Summer) due to Coronavirus. When October kicked in my mood went a little bit bleaker as the light summer months had been and gone, darker days where setting in and sadly … Continue reading 30 Day Coding Challenge & Personal Update 2020
Eloquent JavaScript -Book Review (JavaScript)
I have been given the opportunity to review "Eloquent JavaScript" (3rd Edition) by Marijn Haverbeke, published by No Starch Press. First in the interest of fairness and openness; No Starch Press has very kindly sent me a copy of the book for free. As my regular readers may have noticed, I really enjoy the books … Continue reading Eloquent JavaScript -Book Review (JavaScript)
Variables (JavaScript)
Over its lifetime JavaScript has increased the ways that variables can be declared. I am going to take a brief look at the various methods I have come across so far that can be used. var test The var keyword declares a variable (in this case called test) which can later have its value changed/altered. … Continue reading Variables (JavaScript)
Installing Node.js (Raspberry Pi / JavaScript)
During winter 2017 I went through the process of using a Raspberry Pi, as a web server / looking at LAMP (Linux, Apache, MySQL, PHP). With my recent interest in JavaScript I have decided to look at installing Node.js on my Raspberry Pi. Node.js is a free open source environment for running JavaScript on a … Continue reading Installing Node.js (Raspberry Pi / JavaScript)
Updating Web Text Content (JavaScript)
My original Countdown blog post mentioned that the JavaScript could be used to update content on a webpage (e.g. the countdown could countdown in real time and update on a page as it does so). I touched upon a method to do this, however I will expand a little bit on it here: // writes … Continue reading Updating Web Text Content (JavaScript)
Functions (JavaScript)
I am revisiting my JavaScript Countdown to turn elements of it into JavaScript functions. A function allows for parts of code to be reused easily without having to recreate the segment of code every time it is needed. For example, below I have created a basic function that prints "Hello World!" and then called on … Continue reading Functions (JavaScript)
Countdown (JavaScript)
JavaScript has a function called Date() which can either return todays date (24th September 2018 as I write this) or be used to set a date. August 2019 has an important event for me, so I decided to use JavaScript to create a countdown that counts how many days are left until the 1st August … Continue reading Countdown (JavaScript)
You must be logged in to post a comment.