Javascript - What happens when you do not declare but only assign a variable?
You might have stumbled upon this or known it for some time. But it is completely valid to not declare variables in javascript and just assign »
You might have stumbled upon this or known it for some time. But it is completely valid to not declare variables in javascript and just assign »
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 »
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 »
In order to get a child element or several child elements I would suggest you use the querySelectorAll [https://developer.mozilla.org/en-US/docs/Web/API/ »
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 [https://peterdaugaardrasmussen.com/2020/06/27/how-to-lazy-load-disqus-using-native-javascript/] . I did this because my website »
I recently found out that my blog was slow according to google pagespeed [https://developers.google.com/speed/pagespeed/insights/?url=peterdaugaardrasmussen.com] . I scored below »
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 strings. Where »