Browse the archive

Tag: JavaScript

Solved: Why Async/Await does not work with .forEach

The Problem Javascript offers a number of different ways to iterate over an array. Recently while using the array.forEach syntax, I came across some interesting behaviour when using them with the async/await syntax. To demonstrate. Lets take the following Javascript code which simply prints some messages to the console every 2 seconds. function waitForTwoSecs(i) { […]
Read article

How To: Deep Clone a JavaScript Object

Overview JavaScript is becoming ever increasingly more popular as time goes by. While JavaScript has many advantages, it also has many interesting quirks or nuances that can catch out new beginners. In this post I’ll show you how to deep clone a JavaScript object. Problem Okay … before we go any further … lets take […]
Read article

Solved: BlazorInputFile ‘No File Chosen’ Error

Problem Blazor is an exciting new technology for .NET developers that enables us to leverage our core strengths by writing most of the code in C# and minimising the need to write JavaScript code. While working on a Blazor WebAssembly solution that used Steve Sanderson’s BlazorInputFile solution I came across an unusual issue where the […]
Read article

Microsoft Exam 70-480 Study Guide

Having recently passed the Microsoft 70-480 (Programming in HTML5 with JavaScript and CSS3) exam I wanted to share my experience and provide some tips to those that are soon planning to sit this exam. Overview The 70-480 exam forms part of the MCSD: App Builder certification. The achieve the certification you must pass the following exams. […]
Read article