3 ms·
Ok, here's a variation. A programmer is drafted by the military and ordered to write the software for a city destroying weapon. Given the freedom to choose the
by simonh 6y ago
Ok, here's a variation.
A programmer is drafted by the military and ordered to write the software for a city destroying weapon. Given the freedom to choose the implementation language, he chooses Javascript. The user enters the city to be destroyed, which is passed to the Function destroyCity().
The General returns from the weapon's fist use in battle furious. "We fired your damn weapon at Bahgdad, and the city's still there! What's going on?"
"I think I know" says the programmer. Javascript passes it's parameters by value, not by reference."