Functions (TypeScript tutorial, #8)

preview_player
Показать описание
Learning how to create and use functions in TypeScript. I'll also discuss arrow functions, a great way to shorten your code and avoid issue's with "this" scope.

Continue watching my TypeScript tutorials:

► Read more about "this" in JavaScript
Gentle explanation of this in JavaScript:

Understanding Javascripts "this" with clarity and master it:

Understanding the "this" keyword in JavaScript:

► About me
Follow me on Twitter:

Check out my blog:

Subscribe to newsletter:

Like my Facebook page:
Рекомендации по теме
Комментарии
Автор

I've watched a couple of your videos on Typescript and VS code. You have a really good grasp of explaining things in very straight forward and easy to understand manner. I have been reading some documents online on these very topics and those authors make everything way too complicated than necessary. Your short concise videos are refreshing.

TransConBrilliance
Автор

A simple and good explanation about "the this problem" and two common solutions to it.

Bitstream
Автор

Your videos are very helpful. The examples are clean and clear. Thanks a lot!!
The French accent adds class. Pun not intended :-)

bhalperin
Автор

this is such a helpful video. and i also checked the links about 'this' you suggested, it turned out to be easy and clear explanation. Thank you so much!

amberlum
Автор

Fat arrow functions are already in JS6, not just typescript..

sherifkhattab
Автор

I noticed that inside the class Greeter, there is a method sayHello but it doesn't have a type notation. Would it be correct to attach the 'void' type to it? Do any functions declared inside classes take type annotations or is that unnecessary? Thanks

faraitanekha
Автор

you are good! keep making videos man ♥

zenlogie
Автор

bro please tell replace method Alternative

ramya
Автор

setTimeout(() => console.log("Learn JS first"), 500) - An arrow function solves the issue. TypeScript is dying and will eventually be replaced by the real thing: JavaScript. It's a waste of time and effort, and a big mistake to implement TypeScript in your project since you will eventually have to migrate everything back to JavaScript again.

ManuelRochaCR
Автор

I love your videos but please get a new intro music, this one makes me want to die, or at least rip my ears off.

rayaqin