ECMAScript2019 introduced Optional Catch Binding. ECMAScript 2019 Try-Catch-don't careĬoming from C#? Then I think you know exceptions very well and you also have to specify which type of exception you want to catch or at least, declare the base type of all exceptions to make sure you handle them at least. It is the asynchronous antagonist of the for-of loop. Another rising star was the introduction of the await-of-loop. Tip: In combination with a for-of loop, they are pretty tough! ECMAScript 2018Ģ018 wasn’t such a highlighting year for JavaScript, but it brought us the Rest- and the Spread-operator being used on objects instead of arrays only. They return the values or the key-value-pairs of an object as an array. I almost forgot to mention that there are two more functions that can come in quite handy. If you send no second parameter to this function, it will fill up the leading chars with spaces. Console Print out for padStart (code: padding.js)Īs you can see from the console print, I am filling up the penny prices with leading zeros to get my format right for e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |