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

Basic coercion of primitives

  • Jerome Covington

Jerome Covington

11 Aug 2017
Share

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

On Collapsing Product and Engineering

Caveat What follows are my thoughts on the merging or overlapping of roles that is occurring during a time of great disruption in our industry. It is by no means applicable to all companies or all teams. However, it has been a not-infrequent topic in my conversations with several tech
19 Mar 2026 3 min read

Vibe Coding and the Stewardship of Software

Over the past two years, something drastic has happened to my engineering practice: the ability to create working software has become dramatically easier, up to a point. Leveraging modern AI tools, I can describe the features of a change to an existing app (or even specify an entirely new app
13 Mar 2026 3 min read

Proactive: Building a CoderPad-Style Environment for Practicing TypeScript and React Interviews

Preparing for software engineering interviews often feels oddly disconnected from the work many of us actually do. Most interview preparation platforms emphasize classic data structures and algorithms problems. While those skills are important, they rarely reflect the kinds of problems many frontend or full-stack engineers spend their time solving: designing
11 Mar 2026 3 min read
Jerome Covington © 2026
Powered by Ghost