js the weird parts
js the weird parts ISTool
SourceForge.net Logo

Js The Weird Parts Jun 2026

: The default environment where your code begins (creates the window object and this ).

console.log(1 + "1"); // "11" (string) console.log(1 - "1"); // 0 (number) js the weird parts

It gets weirder:

Why? Because + is overloaded. If either operand is a string, it prefers string concatenation. But - doesn’t have a string version, so it coerces everything to numbers. Fun, right? : The default environment where your code begins

Arrays in JS are just objects with numeric keys and a special length property. That means you can do... questionable things. // "11" (string) console.log(1 - "1")

Visual & Installer - Visual Studio 2005 - 2019 addin for creating Inno Setup installers Install Designer - Create NSIS and Inno Setup dialogs easily RAD and Installer for Embarcadero RAD Studio 2009, 2010, XE - XE8, 10 Seattle - 10.3 Rio
Click here for more details... Graphical Installer for Inno Setup - cool looking skinned installers

Copyright © 2004-2019 Bjornar Henden