© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Lucas Giraldelli
I think the OR & Equals (||=) after example is wrong.
should be:
let a = 1; a ||= 3
// Output: a = 3
Or I am wrong?
Olivier Pons
Django
He wrote twice "a &&= 3" for "&&=" but also for "||=" ;)
Brayan Arrieta Alfaro
Senior Software Engineer | Machine Learning Passionate | SAFe Scrum Master | AWS Enthusiastic
Checking thx for that I will check and correct that
I changed to
let a = 0; a ||= 3
Basically the conditional apply with falsy values, thx Lucas Giraldelli Olivier Pons