Skip to main content

Command Palette

Search for a command to run...

JavaScript πŸ’›βœ”

Updated
β€’3 min read
JavaScript πŸ’›βœ”

What is Javascript?

Javascript is the world's most popular programming language.

It abbreviated as JS

Created to make web pages alive

When it was first created, it named LiveScript and later named JavaScript.

Why JavaScript?

It is a scripting language that is one of the three core languages used to develop websites. Whereas HTML and CSS give a website structure and style, JavaScript makes it functional and interactive.

Also, there is no relation between Java and JavaScript except the name Java. Many say it was also a marketing static to divert some attention from Java, which was the most popular language at the time.

How it works?

It can run on the browser, server, or any device that has a special program called the JavaScript engine .

Different browsers have their own engine to run javascript called β€œJavaScript virtual machine”.

Chrome & Opera: V8

FireFox: SpiderMonkey

Safari: Nitro and SquirrelFish

How the Engine works?

  1. First engine reads the script
  2. Then it converts/compiles to machine-readable code without any transformation.
  3. Then machine code runs very fast

You can check more How JavaScript Works by Alexander Zlatkov

Namastey Javascript πŸ™

JavaScript programs can be inserted almost anywhere into an HTML document using the <script> tag.

<!DOCTYPE HTML>
<html>

<body>

  <script>
    alert( 'Namastey Javascript πŸ™' );
  </script>

</body>

</html>

Live Demo

The above code will result in an alert to the page as below.

image.png

JavaScript Today

image.png

Wishing you a Happy New Year

Thanks for your time and patience to go through this and I do hope you have learned something.

A

It would be reasonable to say that JavaScript, as well as other programming languages using the same tricks. JavaScript is just a tool. And it is totally not enough to become a good programmer. It happened so that js become a languege of the web, having a good life both on the server and the client. It is good enough to know what language to pick up, but ...it is something like to know what kind of hammer you will use when working. I think that it is much more important to understand the basics and concepts. Algorithms and data structures, even tho Frontend almost free of algorithms. Today i meet a lot of developers with huge gaps in knowledge, most of them are newcomers into the web development sphere, where knowledge of JavaScript and its libraries is needed. I am comparatively new to the field as well but i feel myself different just because I decided to know more about programming itself. To understand why those methods or functions are working like this. What types of code is good and scalable. Today we have amazing boom in it,at the same time the quality of the code became worthier in times.

1