Hacker News new | ask | show | jobs
by lxcid 4366 days ago
If you watch the video and wondering about the multiple subscripts prepended by '?', this technique is called optional chaining. It also work for properties and methods.

It is kinda similar to how we can invoke methods on 'nil' in Objective-C and not causing any runtime error.

Just stating if anyone is wondering.