Andrew Wong Archives

Go (Golang) Structs

In Go (Golang), a struct is a composite data type that allows you to group together related...

Functions in Go (Golang)

A function in Go (Golang) is a reusable block of code that performs a specific task. Functions are...

Variables in Go (Golang)

In the Go programming language, a variable represents a named memory location that stores a value. Variables are...

JavaScript Promises

In JavaScript, a promise is an object representing some value that may not yet be available, but...

Hoisting in JavaScript

Updated May 2026 I still remember logging a variable in a tiny browser script, expecting a crash, and...

Immediately invoked function expressions (IIFE) in JavaScript

An immediately invoked function expression, or IIFE (pronounced iffy), is a function that is called immediately after...