I recently had to redirect between some components in an Angular application and
I figured it would be a better user experience if the state was »
Peter Daugaard Rasmussen
on Javascript
14 March 2021
I recently wanted to remove certain elements on my page. They all shared the same class, but I ran into problems when the last one in »
Peter Daugaard Rasmussen
on Javascript
07 October 2020
In order to get a child element or several child elements you can use the querySelectorAll or QuerySelector functions. Yes these can be both at document »
Peter Daugaard Rasmussen
on Javascript
05 October 2020
I recently made a post where I needed to show some code that would look better without word wrap as it was basically one or two »
If you are a blogger on software you are likely going to share some code snippets. Without highlighting code can be hard to read and your »
I recently made a post on how I lazy load my Disqus comments. I did this because my website was performing poorly when I analysed it »
Peter Daugaard Rasmussen
on Javascript
11 July 2020
I recently found out that my blog was slow according to google pagespeed. I scored below 50, but I could have sworn that when I created »
I finally decided that it was time to give websockets a try. They have been
around for over a decade, but I just had not found »
The `` signs are used to create templates, they have the fitting name "template
literals". These are used to make it more simple to create »
Peter Daugaard Rasmussen
on Javascript
01 January 2019
I recently created a post on the differences between var, let and const
[https://peterdaugaardrasmussen.com/2018/08/22/javascript-what-is-the-difference-between-var-let-and-const/]
. One thing that I realised writing »
Peter Daugaard Rasmussen
on Javascript
22 August 2018