![]() ![]() The rise of Node.js in the last few years unlocked backend development, once the domain of Java, Ruby, Python, PHP, and more traditional server-side languages. JavaScript is also now widely used outside of the browser. With the growing needs that the web platform demanded (and continues to demand), JavaScript had the responsibility to grow as well, to accommodate the needs of one of the most widely used ecosystems of the world. In the begining, JavaScript was not nearly powerful as it is today, and it was mainly used for fancy animations and the marvel known at the time as Dynamic HTML. Other languages exist, but all must compile to JavaScript - or more recently to WebAssembly, but this is another story. It was the first scripting language that was supported natively by web browsers, and thanks to this it gained a competitive advantage over any other language and today it's still the only scripting language that we can use to build Web Applications. A little bit of historyĬreated in 1995, JavaScript has gone a very long way since its humble beginnings. Update: You can now get a PDF and ePub version of this JavaScript Beginner's Handbook. A brief intro to the syntax of JavaScript.In case you're wondering, JavaScript has nothing to do with Java, it's a poor name choice but we have to live with it. You can write JavaScript in a functional programming style, with its first-class functions, or even in an imperative style (C-like). You can write JavaScript using an object-oriented paradigm, using prototypes and the new (as of ES6) classes syntax. multi-paradigm: the language does not enforce any particular programming paradigm, unlike Java for example, which forces the use of object-oriented programming, or C that forces imperative programming.In practice, browsers do compile JavaScript before executing it, for performance reasons, but this is transparent to you - there is no additional step involved. interpreted: it's commonly known as an interpreted language, which means that it does not need a compilation stage before a program can run, as opposed to C, Java or Go for example.loosely typed: as opposed to strong typing, loosely (or weakly) typed languages do not enforce the type of an object, allowing more flexibility but denying us type safety and type checking (something that TypeScript - which builds on top of JavaScript - provides).You can reassign any type to a variable, for example, assigning an integer to a variable that holds a string. dynamically typed: a variable does not enforce a type.Don't worry if those things are unknown to you - you'll know all of them by the end of the course. This has pros and cons, and it gives us powerful features like dynamic typing, late binding, reflection, functional programming, object runtime alteration, closures and much more. dynamic: opposed to static programming languages, a dynamic language executes at runtime many of the things that a static language does at compile time.It manages memory automatically with a garbage collector, so you can focus on the code instead of managing memory like other languages like C would need, and provides many constructs which allow you to deal with highly powerful variables and objects. ![]() ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |