r/programminghorror • • Oct 26 '26

Python I love Python

308 Upvotes

81 comments sorted by

View all comments

Show parent comment

1

u/Beregolas Oct 30 '26

you actually seem to be correct... I must have misremembered. I vividly remember we had a bug in our Node-JS backend (not my choice) which worked exactly the same as this, but then it was probably passed in or a const...

Sorry for the confusion / misinformation ^^

1

u/tehdog Oct 30 '26

The default parameter syntax in JS is pretty new, up until some years ago you could only use it with TS or transpilation