The mistake that I want to mention in this video is really less of an everyday mistake and more of a mistake in the way you think about your code. What do I mean by that? Well, take about five seconds to see if you can figure out the issue with the code that's in front of you. I'll wait.
Okay, were you able to spot it? Well, if so, then you did pretty good. And in a real life application that is more complex, it would not be as apparent as in this scenario. However, if I chose just to add a few characters to line one of this file, the issue would be immediately apparent.
What few characters do I want to add? Well, it goes like this, lang equals ts. Right away now, you can see on line eighteen that we have an error. There is a red squiggly line, and hovering over it, I get this little hint here.
Property mail does not exist on type, and then this object. Did you mean email? Oh, why yes I did. Okay, I noticed some people TypeScript is kind of a scary thought.
It was for me when I first started out. And yes, in the beginning, there were some pains that I had to overcome. And for about three to four months, it probably did slow me down a little bit more than it helped. But now today, I honestly couldn't imagine developing an app without using TypeScript.
well maybe PHP, but I couldn't use JavaScript alone. While this might seem a little bit presumptuous, I think your experience will probably look very similar to mine. Don't take my word for it though. js three.
js and see many of the benefits that it has to offer. At the very least, I do encourage you to explore the benefits of TypeScript and at least consider it for your next project.