Renaming Python Names for JavaScript
Rename as you port the release note. Underscores are legal in JavaScript identifiers, but
variables and functions conventionally use camelCase: open_bugs → openBugs and
print_header → printHeader. Update declarations and uses together.
The six fixed settings keep UPPER_SNAKE_CASE here. const prevents rebinding; capitals mark
settings rather than every const. The computed openBugs remains camelCase.
Classes, when you meet them, use PascalCase, such as ReleaseNote. A dollar sign is legal in
a JavaScript identifier, such as $openBugs; expect it in library names rather than adopting
it for your variables.
Some ordinary Python names are reserved in JavaScript: default, delete, new, and
package in strict mode, including modules. Using them as names causes a SyntaxError.
Pick meaningful alternatives, such as defaultChannel for the client’s channel.