SEE: Six in-demand programming languages: Getting started (free PDF)
It's also got broad editor support, including Visual Studio Code, Vim, and Emacs.
"So what is optional chaining? Well at its core, optional chaining lets us write code where we can immediately stop running some expressions if we run into a null or undefined. The star of the show in optional chaining is the new ?. operator for optional property accesses," explains Daniel Rosenwasser, a program manager with Microsoft's TypeScript team.
The addition of a question mark prepending the operator brings to TypeScript similar operators available in C#, Apple's Swift, Android-aligned Kotlin, Dart, Ruby, and Groovy.
Linked to optional chaining in TypeScript is another upcoming ECMAScript feature called 'nullish coalescing'.
"You can think of this feature – the ?? operator – as a way to 'fall back' to a default value when dealing with null or undefined," writes Rosenwasser.
Rosenwasser also lists a number of breaking changes in version 3.7 that developers should be aware of. Ahead of the final release of TypeScript 3.7 in early November, Microsoft will offer a release candidate.
More on programming languages and Microsoft's TypeScript
- Microsoft: We want you to learn Python programming language for free
- TypeScript 3.4 is out: Microsoft tweaks programming language to cut build times
- Microsoft's TypeScript programming language rising fast, almost makes top 10
- Programming languages: PowerShell nets more Linux, macOS, Windows developers
- Programming languages: Python rides high but Groovy is cool again with developers
- Python programming language's top uses, tools: Developers reveal their choices
- Best-paying programming languages, skills: Here are the top earners
- The programming languages and skills that pay the best in 2019 TechRepublic
- Is Julia the next big programming language? MIT thinks so, as version 1.0 lands TechRepublic
- Mozilla's radical open-source move helped rewrite rules of tech CNET