Jerome Covington
  • Home
  • Music
  • Code
  • Inspiration
  • Workflow
  • Specifications
Sign in Subscribe
javascript

Basic coercion of primitives

  • Jerome Covington

Jerome Covington

11 Aug 2017

Nothing special here, but still worth reviewing, and with a few explanations:

Number (e.g. double): +arg
Int32: ~~arg or arg|0
Uint32: arg >>> 0
String: ''+arg
Boolean: !!arg


Sources:
Trevor Norris, Introduction to the three key areas of performance

Sign up for more like this.

Enter your email
Subscribe

Silver Skates: An AI-Powered Research Platform for News Sense‑Making

Silver Skates is an exploratory research platform focused on helping me make sense of the modern news environment. This document describes the platform as it exists today and outlines several research‑driven directions on the roadmap. The project is very much a work‑in‑progress, and my aim here is
22 Jan 2026 2 min read

React / Next.js / WHATWG

React: Origins and Initial Use-case Despite its near ubiquitous usage for all manner of front-end development scenarios these days, Facebook initially developed React as a response to a very specific problem: UI state was becoming unmanageable in large, highly interactive applications. React's original design introduced several (at the
05 Jan 2026 3 min read

Take a break for a code debugging exercise in any language with a prompt for ChatGPT

Let’s play a game: I want to get better at recognizing bugs in code, and would like you to provide challenges for me to do so. When I prompt you with the words “Next exercise: <language>” please provide code in that langauge that has a bug in
15 Jul 2024 1 min read
Jerome Covington © 2026
Powered by Ghost