It was created in 1995 in just a week by Brendan Eich.
The main goal was to add an easy-to-learn scripting language for the Netscape browser.
It was initially named mocha, but marketing people made it sound like the 1990s sexy Java language.
Currently, it is a fully featured language according to Ecma standards.
It is currently well known for making the frontend of the website. It is the only language, except for Web Assembly, that is native support in all browsers.
You can create server-side applications in NodeJs, mobile applications in react-native and iconic, and desktop applications in electron.
It is an interpreted scripting language, but tools like Google V8 engine and chromium use a JIT(Just-In-Time) compiler to execute your code at runtime. And also good at handling IO(Input-Output) intensive jobs.
Descript the fact it is a single-threaded language. It is all made possible by its non-blocking event loop, which queues your work in the background without blocking the main thread. Worldwide 97.7% of websites use it as their client-side language.
Let’s first look at the advantages and disadvantages and then see where to learn it.
It is easy to learn a language with simple syntax. It is very doable to implement and saves a tonne of time and money for a developer in creating a complex web app.
It is one of the most flexible languages. You can create almost anything with it. You can create frontend, backend, mobile, and desktop applications just by using a single language.
Lack of debugging facility
It is executed differently in different browsers. These days the difference is minimal. You have to test your script in various browsers and older versions because some features may not support that browser or that version.
You Don't Know JS
Find an issue with this page, or do you want to correct the mistake in the blog post. Fix it on GitHub
Is the Tailwindcss worth right using in your projects?