Posts
-
Vs Code Snippets
21/05/24A list of some of the VS Code snippets for JavaScript.
-
Removing array items
16/04/24The several methods to remove items from an array.
-
CSS Custom Props
22/03/24How to set CSS custom properties with JavaScript.
-
Click Outside
25/12/23How to click outside of an element to close it
-
Importing With ES6
14/12/23Importing from other JS files using ES6 modules
-
Copy to Clipboard
12/12/23How to copy something to the clipboard using async-await
-
Forms 2
09/03/23The JS part of HTML forms.
-
Time and Date
25/02/23How to get the time and date in JavaScript
-
Node JS
19/02/22Using Node JS to run Javascript outside of the browser.
-
require()
18/02/22An explanation of the NodeJS require() function
-
Forms 1
03/02/22Covers the basics of HTML form tags inc. the various types of input tags. You can …
-
localStorage
03/02/22localStorage and sessionStorage are areas in the browser that are like a big …
-
setTimeout and setInterval
27/01/22How to set delays and intervals in JavaScript
-
Events
27/12/21Site interactivity with event handlers and listeners
-
The DOM
08/06/21What the DOM is and how to work with it.
-
Objects 1
04/08/20Objects are sometimes referred to as dictionaries. Objects can contain properties. …
-
charAt()
04/08/20The charAt(n) method finds the nth character of a string.
-
charAt()
04/08/20The charAt(n) method finds the nth character of a string. const bird = …
-
Replace
04/08/20Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nam nulla fuga saepe …
-
Math
03/08/20Math operators The math operators are: Symbol Action Example + add - subtract * …
-
Functions
03/08/20An intro to function expressions, anonymous functions and arrow functions.
-
IndexOf
03/08/20The indexOf() finds the position of the first character in a string that is in a …
-
Strings
31/07/20Strings can be defined using single quotes, double quotes or backticks. With …
-
Looping in JS
29/07/20Different ways of looping with JavaScript.
-
Arrays
27/07/20Arrays are variables with multiple values. let birds = ["swans", …
-
If
27/07/20The conditonal if statement is very important in JS and has many uses. The basic …