Skip to content

How to get first element from list in TypeScript?

var ary = ['first', 'second', 'third', 'fourth', 'fifth'];
alert(ary[0]);
See also  Python code snippet - How to make a kivy label multiline text?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.