TypeScript vs JavaScript Explained with Real-Life Examples