Home About

All posts tagged with "Javascript"

Javascript (JS), a programming language that conforms to the ECMAScript standard. It is known for being dynamically typed and used to power websites.

Page 1 of 3 Older Posts →

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, Browser 28 March 2022

Angular - How to keep loaded content of a page/component when jumping between different routes using routing-outlet

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 Peter Daugaard Rasmussen on Javascript, Angular 14 March 2021

Javascript - How to remove all elements in a list (HtmlCollection) within a loop

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 Peter Daugaard Rasmussen on Javascript, Web development 07 October 2020

Javascript - how to get a child element with a specific class, attribute or any other selector

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/ »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, Vanilla javascript, HTML, Web development 05 October 2020

How to make prism.js word-wrap (line-wrap) code snippets

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, Web development, Blogging, CSS 12 September 2020

Adding code highlighting to your website and blog posts using prism.js

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, Web 22 August 2020

How to lazy load Google ads using native javascript!

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, Google, Adsense 11 July 2020

How to lazy load Disqus using vanilla/native javascript!

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Disqus, Javascript, Web, HTML 27 June 2020

How to use Websockets with Asp.net core - an example on how to push messages to a website

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Websocket, ASP.NET, C#, Javascript, .Net, .Net core 20 January 2019

What are the `` symbols (back tick) in javascript? and what does the following ${something} do?

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, String 01 January 2019
Page 1 of 3 Older Posts →
Rss
Twitter
LinkedIn
profile for Peter Rasmussen at Stack Overflow, Q&A for professional and enthusiast programmers
Peter Daugaard Rasmussen - developer, Consultant, Blogger © 2022 Cookie policy