You know what? You’re in the right place. We’re going to walk through it together. To-ge-ther!
Alright. What you’re about to read here will open your eyes. You might even fall in love with the language.
I’m gonna show you what the language is and what it is used for.
It is growing so fast. And this can make beginners get overwhelmed easily and even hate the language.
I’m sure that if you decide to go for the language, You’re not going to get overwhelmed or hate the language itself.
No! You’re not going to do that. Or are you?
But now, JS is one of the most talked about programming languages. It can be used to do many things.
If you have ever asked a professional programmer what programming language to learn first. Their answer would be:
This is because they are very easy to get started with. I’m not saying that other languages are as hard as hell.
You just need to figure out what you want to do and choose the appropriate language for it.
Brief History of JS
You might skip this brief history if you don’t need it. But it is very Important though.
- Developer: Netscape Communications Corporation, Mozilla Foundation, Ecma International
- First appeared: December 4, 1995; 22 years ago
- Stable release: ECMAScript 2017 / June 2017; 9 months ago
- Typing discipline: Dynamic
- Designed by: Brendan Eich
Again, we’re going to go through the key points one after the other. Let’s do this!
We have the very first and the hardest one – Machine language programming. This is when you write your code to the machine using Zeros and Ones.
We have the Assembly Language programming: In this case, You use mnemonics to represent groups of the Zeros and Ones.
Imagine yourself writing code in those Languages. It would be fun though [winks].
When it comes to the world of language translators, codes can be assembled, compiled or interpreted.
In other programming languages like Java, You must declare your variables.
Eg in Java: int num = 80;
As you can see, those two are not the same. In Java, you use int to represent whole numbers but in JS, you can use the keyword var to represent almost everything. Like strings, objects, booleans etc.
What does it mean to say that JS is prototype based?
I hope these brief explanations are not too much yet.
A prototype-based programming language is a style of object-oriented programming(OOP) that uses functions as constructors for classes.
Though JS has the class keyword, it is not as efficient as classes of other languages. You know what? Forget about this. Next time we will go deeper into it with examples.
Other points are self-explanatory. Oh! multi-paradigm: JS is object-oriented. Everything is JS is treated as an object. The inheritance is prototype-based. JS is also functional, supporting first-class functions. Functions are objects.They can be passed around.
When you visit a website, You’ll be seeing the content of the website as though they are sitting right on your device.
It is worth knowing that most web applications run on JS. Example: Facebook, Twitter, Gmail etc.
You can use JS to make mobile applications. The apps made with JS are called Hybrid apps. One of the most talked about languages for this job is React Native.
Again in the case of websites, we can use JS on both front-end (UIs) and back-end.
It’s not only on websites and web applicants that JS can be used.
We also use JS in robots.
We’ve managed to cover:
What JS is really is,
A brief history of JS
How JS works
What you can do with js
So, you might wish to get started with the language. It is worth it. Learning the basics is the first step. Somethings like loops, functions, variables, arrays etc. These things are pretty easy to learn.
Finally, I have to thank you for making it to this stage. We made it together.
If there’s anything that’s not clear to you, just ask it in the comment box below.