We can make use of 'Short Circuit Evaluation' to assign default values to variables given a list of values.
For more information about Short Circuit Evaluation, take a look at:
https://developer.mozilla.org/en-US/d...
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
On this page of the site you can watch the video online Javascript Tutorial - Default Values (Short Circuit Evaluation) with a duration of hours minute second in good quality, which was uploaded by the user dcode 10 December 2017, share the link with friends and acquaintances, this video has already been watched 3,466 times on youtube and it was liked by 85 viewers. Enjoy your viewing!