Here's a trick I use to render a default page when a parameterized Express.js route is called with no parameter.
You will learn how to set default values when using the destructuring assignment with objects. The destructuring assignment is used to unpack values from arrays or properties from objects, as you will see in this video.
🔗 Useful links
▶️ https://developer.mozilla.org/en-US/d...
▶️ http://es6-features.org/#ObjectAndArr...
▶️ http://es6-features.org/#DefaultParam...
#es6 #javascript #destructuring #assignment #variables #ecma6 #webdev #webdevelopment #oprearocks
Watch video How to set default values when using ES6 destructuring assignment online without registration, duration hours minute second in high quality. This video was added by user Adrian Oprea 31 October 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 27 once and liked it people.