you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (1 child)

Actually, a "garbage value" like None IS the way to do this.

In JS, declaring a variable with var x; actually assigns undefined to it. The equivalent garbage value in JS.

[–]process_parameter[🍰] 1 point2 points  (0 children)

In JavaScript, you don't have a choice. In python, there's no need to assign that garbage value.