Ghost
Sign in Subscribe

Javascript

A collection of 3 posts
Javascript

Remove an outer array in JavaScript with the flat method

If you're working with nested arrays and need to return just a singular array, reach for the Array.flat() method.
Mar 3, 2023 1 min read
Javascript

Tip #21: Add confetti effects to your website with confetti.js

One of the best effects on the web today is a burst of confetti that gets triggered when a user clicks a button or completes a task.
Feb 21, 2023 1 min read
Javascript

Tip #13: Use Date to add the current year to your copyright claim

Typically at the bottom of websites you'll see something along the lines of "© Website Name 2023. All Rights Reserved". While you can hard-code this piece of content in your footer, I recommend you actually inject the year using a small amount of JavaScript.
Feb 17, 2023 1 min read
Page 1 of 1
Ghost © 2023
Powered by Ghost