DEV Community

loading...

Discussion on: 6 Nullish coalescing operators every javascript programmer must know !

Collapse
sebalr profile image
Sebastian Larrieu

Good post but I don't agree that multiple ternary operators is a good idea. There even is a lint rule to prevent that. In my opinions it makes code harder to follow that if-else

Collapse
sudarshansb143 profile image
sudarshan Author

Thanks for you feedback !

but, I think It is preferential to whether or not we should use this kind of stuff !

I will definitely look into that !