DEV Community

loading...

Discussion on: Common JavaScript Tips

Collapse
artydev profile image
artydev

Nice thank you

You have also :

b = a && 1 || 2
Enter fullscreen mode Exit fullscreen mode

Regards