Interesting Facts about JavaScript

  • Almost every web application uses JavaScript!
  • Most programming languages use semi colon at the end of a statement. But do you know, Javascript uses semi colon at the beginning as well as at the end of a statement!
  • Although it has a specific meaning, ‘undefined’ is not a reserved keyword in JavaScript!
  • In JavaScript, NaN (Not a number) is also a valid number!
  • JavaScript was created in about 10 days!
  • In JavaScript, NaN is not equal to anything, not even to itself!
  • JavaScript has no relation with Java!
  • In JavaScript, Null is an object! If you check by using the typeof function, you will get an object!
  • In JavaScript, a function can execute itself! For example: (function() { alert(‘hello world’); })(); //alerts ‘hello world’.
  • You cannot use the src attribute having the path to a script and some inner code in the same scripts tag!
  • JavaScript is used on over 90% of all websites.
  • The first website written in JavaScript was HotJava, which was created in 1995.
  • There are more than 100 billion lines of JavaScript code in existence.
  • The syntax of JavaScript is similar to Java, C++, and other languages, but it runs faster because it has fewer predefined functions.
  • JavaScript can be used to create applications, libraries, and standalone scripts, as well as interactive widgets in websites and desktop applications.
  • JavaScript is such a language that is used more than any other language in websites.
  • A large percentage of web developers are also proficient in JavaScript.
  • JavaScript was originally created by Brendan Eich in 1995 with the help from Netscape co-founder Marc Andreessen.
  • The language was originally called LiveScript and was renamed to JavaScript in 1998.
  • In 2009, ReactJS was created as a library for building user interfaces with JavaScript.
  • According to W3Techs, JavaScript is currently the fifth most popular programming language on the web.
  • According to Stack Overflow, more than 68% of all questions asked on their site are about JavaScript!
  • Apart from being used in web applications, JavaScript is also used in gaming!
  • Node.js is a platform-independent JavaScript runtime built on Chrome’s V8 engine and designed for building scalable network applications. Node JS also enables a JavaScript code to be executed on a web server!
  • JavaScript is a popular programming language that is used to create websites and web applications. It has a few interesting facts that make it stand out from other programming languages. For example, JavaScript was not originally designed as a browser-specific language. In fact, it was originally designed as a general-purpose scripting language.
  • Another interesting fact about JavaScript is that it can be used in both web browsers and standalone software applications. This makes it an extremely versatile language for creating websites, web apps, and even desktop applications.
  • It has been used in many popular websites such as Google, Yahoo!, and Facebook.
  • There are many different libraries and frameworks available for JavaScript which makes it easier to write code.
  • The language also supports closures, which allow developers to create more efficient code by hiding intermediate calculations inside functions.
  • JavaScript has an object-oriented syntax which makes it easy to create complex programs.
  • The popularity of JavaScript has led to growing demand for skilled developers, and the industry is expected to grow by 20% over the next few years.
  • Whether you’re a beginner looking to learn more about this popular programming language or an experienced developer looking for ways to streamline your workflow, there’s plenty of resources available online.
  • It can be embedded directly into HTML pages

In conclusion, JavaScript is a popular, versatile programming language that can be used for a variety of purposes. It is  lightweight and easy to learn, making it a great choice for web development projects.

Leave a Comment

Your email address will not be published. Required fields are marked *