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

My Artist Pages

Below are my artist pages on the most popular music platforms, although if you search for me elsewhere, you’ll probably find me there too. All About Jazz has some more details on my approach to music, which may be of interest. There is also an interview published in Jazz
22 Jul 2026

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
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
Jerome Covington © 2026
Powered by Ghost