TypeScript is a syntactic superset of JavaScript which adds static typing. TypeScript compiles into clean, simple JavaScript code.
TypeScript Engineering
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Compiler
7 min read
•
Chapter 2 of 6
TypeScript Intro
TypeScript is a syntactic superset of JavaScript which adds static typing. TypeScript compiles into clean, simple JavaScript code.
Example
<!DOCTYPE html><html><body style="font-family:monospace;padding:20px;"><pre>// Caught at compile time:\nlet num: number = "hello"; // Type Error!</pre></body></html>
Try it Yourself >>
Opens live sandboxed code editor
Advertisement
Google AdSense Slot (IN-ARTICLE)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Community Q&A & Discussion
Verified
No questions yet. Be the first to start the discussion!