![]() ![]() JavaScript’s equality operator ( =) coerces its arguments, leading to unexpected behavior:Ĭonsole. To summarize, we have a language that was designed for quick uses, and then grew to a full-fledged tool to write applications with millions of lines.Įvery language has its own quirks - oddities and surprises, and JavaScript’s humble beginning makes it have many of these. There are many developers these days that use only JavaScript to program their entire stack! ![]() The “run anywhere” nature of JS makes it an attractive choice for cross-platform development. More than this, JS has become popular enough to be used outside the context of browsers, such as implementing JS servers using node.js. This is long and gradual growth of “the web”, starting as a simple network of static pages, and evolving into a platform for rich applications of all kinds. On modern websites, your browser is frequently running applications that span hundreds of thousands of lines of code. Web browser developers responded to this increased JS usage by optimizing their execution engines (dynamic compilation) and extending what could be done with it (adding APIs), which in turn made web developers use it even more. Over time, though, JS became more and more popular, and web developers started using it to create interactive experiences. JavaScript (also known as ECMAScript) started its life as a simple scripting language for browsers.Īt the time it was invented, it was expected to be used for short snippets of code embedded in a web page - writing more than a few dozen lines of code would have been somewhat unusual.ĭue to this, early web browsers executed such code pretty slowly. The relationship between TypeScript (TS) and JavaScript (JS) is rather unique among modern programming languages, so learning more about this relationship will help you understand how TypeScript adds to JavaScript. You’ve probably already heard that TypeScript is a “flavor” or “variant” of JavaScript. Congratulations on choosing TypeScript as one of your first languages - you’re already making good decisions! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |