Recent Posts
JS: The Good, The Bad, and The Ugly
- Get link
- X
- Other Apps
JS: The Good, The Bad, and The Ugly
JavaScript has been around since 1995, but it hasn’t always been the most loved or easiest to work with programming language in the world. Sure, you’ve probably heard your fair share of jokes about JavaScript, but that doesn’t mean it isn’t a useful tool for front-end web development. This article will cover both the good and bad aspects of JavaScript, and try to convince you why you should start using it today!
Introducing JavaScript
JavaScript is a programming language that became popular in the late 1990s. It is often used to create interactive features on websites. However, like many programming languages it can also be used for other purposes. JavaScript is mostly used for the front-end of webpages but there are cases where it can run on the server side as well. For example, some languages use JavaScript to update pages without reloading them. There are four main versions of JavaScript which were released in 1997 with ECMAScript 1; 1999 with ECMAScript 2; 2009 with ECMAScript 3; and 2015 with ECMAScript 6 (ES2015). ES2015 has introduced many new features such as arrow functions, template literals, classes and modules among others.
Pros of JavaScript
JavaScript is a powerful programming language that you can use to do a lot of things. It's available on the web (in browsers), on the desktop (in Node.js), and even on mobile devices (in Cordova). JavaScript has a long history that goes back to 1995 when it was first created by Brendan Eich for Netscape Navigator 2.0. Today, JavaScript is an open-source language supported by all major web browsers including Safari, Chrome, Firefox, IE10+, Opera 12+, and Edge!
Cons of JavaScript
JavaScript is a challenging programming language to learn. It has a syntax that is very different from other languages, such as Python or Java. It also doesn't have any formal specifications (or official language specification), which means there are many ways to write code that can all produce the same output. This means when you're learning JavaScript, you will often see people say things like This is how I would do it in JavaScript but not mention what the best way to do it might be.
JavaScript also has many strange quirks that take time to get used to - for example, its lack of block scope in loops can lead to some very unexpected results if you're not careful.
Myths about JavaScript
JavaScript is not a language. JavaScript is an environment. JavaScript runs in the browser. JavaScript is only for web developers. JavaScript is a scripting language. You can't write programs with it like you can with C++ or Java. You need to use tools like CoffeeScript to make JavaScript easier to read and write. These are all myths about how JavaScript works, but they're just that: myths! Though people may argue over whether or not JS is a programming language or merely a scripting language (it's both!), the truth of the matter is that JS has a lot going for it as both. From cross-browser compatibility to its lightweight syntax, there are many reasons why one might consider using JS as their primary programming language choice!
- Get link
- X
- Other Apps
Comments
Grate work
ReplyDelete