Code Wars helps you improve your skills by training in challenges with others. They offer a huge variety of languages, including JavaScript, Python and more.
Elevator Saga tests your JavaScript knowledge with challenges related to moving an elevator and transporting people in the most efficient manner possible.
There are hundreds of resources- tutorials & documentation out there, and I hope that some of the ones listed here targeting game-based learning approaches will prove to be useful in your day-to-day learning and most importantly help you practice the language in a more fun way ๐ฅ
Let's deep dive into the concept of Optional Chaining in JavaScipt.
With optional chaining, we can check to see if something exists and handle an error gracefully.
A Thread ๐
What the heck is Optional chaining? ๐ฅด
The optional chaining " ?." is a recent addition to the language which is a secure way to access nested object properties, even if an intermediate property doesnโt exist.
Optional chaining in JavaScript is very useful - we can access values without checking if the parent object exists. Instead of returning an error, it will return null or undefined.