Nov202006
Javascript Sucks, Part 1
Filed under: javascriptJavascript lacks string interpolation of any sort.
Python:
s = "%0.2f" % floatN
PHP:
$s = sprintf ( "%0.2f", $floatN );
C:
sprintf ( s, "%0.2f", floatN );
Javascript:
Go find a library.
How the hell did this language make it out of the dumpster?







To quote Brendan Eich, Javascript's "early flaws were never fixed, and worse, no virtuous cycle of fine-grained community feedback in the form of standard library code construction, and revision of the foundational parts of the language to better support the standard library and its common use-cases, ever occurred."