What is JavaScript ?

What is JavaScript learn JavaScript

JavaScript, we can define JavaScript in many different ways. But my definition is that it’s a high-level, object-oriented, multi-paradigm programming language. And with that being said, Can we move on to the next lecture thing? Well, probably not. Because what does any of that mean? So let’s deconstruct this just a little bit to at least make some sense out of this.

And starting with the programming language itself, a programming language is just a tool that allows us to write code that will instruct a computer to do something. And of course, that’s our main goal of using JavaScript.  Then I go on and say that JavaScript is a high-level language, which means that we don’t have to think about a lot of complex stuff, such as managing the computer’s memory, while it runs our program. So in JavaScript, there are a lot of so-called abstractions over all these small details that we don’t want to worry about. And this makes the language a lot easier to write and to learn.

What is js definition ?

I say that JavaScript is object-oriented. And all that means is that the language is mainly based on the concept of objects for storing most kinds of data. And of course, we will talk about Object-oriented programming later. Finally, JavaScript is also a multi-paradigm language

meaning that it’s so flexible and versatile that we can use all kinds of different programming styles, such as imperative and declarative programming. And these different styles are just different ways of structuring our code. Again, you will learn all step by step, This is just the first very high-level overview, but I hope it’s made sense so far.

 Now that we know what JavaScript is ?

JavaScript is, at least kind of what is the role that it plays in web development? Or in other words, what do we use it for? And to answer that question,

 let’s look at the three core technologies of the web, 

HTML, CSS, and of course, JavaScript. So these three technologies all work together to create beautiful interactive and dynamic websites or web applications.

HTML is responsible for the content of the page. So the text, the images, the buttons, and all the contents that you see on a web page is always written in HTML, then the

 CSS is responsible for the presentation of the content. So basically, for styling and for laying out the elements on a webpage.

JavaScript is the actual programming language of the internet. And it allows developers to add dynamic and interactive effects to any webpage. We also use it to manipulate the content or the CSS, load data from remote servers and build entire applications in the browser, which we then call web applications.

 We can also use the analogy of nouns, adjectives, and verbs to make the separation of roles a bit easier to understand. 

So in this analogy, HTML represents the nouns

for example, saying that the p element is a paragraph. And so paragraph is the noun here. The CSS then is the objective because it describes the noun, like this piece of CSS saying, the paragraph text is red. And so here, red is the objective describing the noun. And finally, JavaScript is, of course, the verb, like saying, hides the paragraph. And so here we are doing something. And so we have a verb. Okay? Does that make sense? Since we’ve been talking a lot about dynamic effects and web applications here, let’s now actually take a look at a real example to make it even more clear what JavaScript is capable of.

Let’s talk about Twitter web application in terms of JavaScript

 When you open a profile page. And so I thought that it was a very excellent example. So right off the bat, once you visit you will see two rotating spinners on the page, meaning that JavaScript is probably loading some data from the Twitter service in the background. Then, as the data arrives, JavaScript.

The spinners and instead show us the loaded content. So this is a very excellent example of manipulating styles and content, right. But there are also some more straightforward dynamic effects on this page, like JavaScript showing the tweet box whenever we hit the tweet button and then hiding it as we click outside of that box. And finally, JavaScript also displays this nice user information as we hover our mouse over any user on Twitter.

 And it probably also loads this data on the fly. So a lot of cool stuff is going on Twitter. And it’s all powered by JavaScript. How cool is that? And, by the end of all of our javascript series blog, you will know how to use all of these techniques that we just saw here. And so, I hope that this makes you even more excited about all the content ahead.

Capabilities of JavaScript

Alright, now that we saw what JavaScript is capable of. Let’s quickly recap and also look at other cool stuff that we can build with the power of JavaScript. So as you already know, JavaScript allows us to add dynamic effects to pages and, in fact, to build entire web applications in the browser. And these applications feel almost like the apps that we use on our computers and phones every single day. So we can say that JavaScript is what made modern web development, and really the whole modern web itself, possible in the first place. Now, if you’re already somewhat familiar with the web development industry,

 libraries and frameworks in JavaScript

you’ve probably heard of modern JavaScript libraries and frameworks, such as React, Angular, or view, right? And if you didn’t, that’s absolutely no problem.

 All you need to know is that these are basically tools that make writing modern, large-scale web applications a lot easier and faster. Now, what matters here is that all these frameworks and libraries are still 100% based on JavaScript. And what this means is that you should become really, really good at JavaScript before learning and using any of these frameworks, and not just jump into your first framework after you know how to write like 10 lines of JavaScript, okay. Also, your library of choice might not always be as popular as it is today. And the best way to be prepared is, you guessed it, becoming really good at JavaScript because then you can easily learn whatever is popular. So no matter what anyone tells you, learning JavaScript properly is the single best investment that you can make in your web development career right now.

JavaScript language and the web browser are actually two separate things

And what that means is that JavaScript can also run outside of web browsers; for example, it’s possible to use JavaScript on a web server using a very popular technology called node js, which doesn’t need any browser at all. And this allows us to create so-called back-end applications, which are simply applications that run on a web server and interact with databases and stuff like that. On the other hand, when we use JavaScript in the browser, we create so-called front-end applications. So in this blog, we will learn the ins and outs of the JavaScript language itself. And of course, also how to use it in the browser in order to create all these amazing effects that we’ve been talking about. So basically, we’re going to be building front-end web applications. And in the future, I might also add a section about Node js at the end of this course so that you can get a sense of how we can use JavaScript outside of the browser environment as well.

Alright, and now just to finish, I want to mention that; we can actually also use JavaScript to build kind of native mobile applications, as well as native desktop applications for any phone and computer operating system out there. That’s because of modern tools like React Native, the Ionic framework, and tools like an electron. These have completely changed the whole development industry over the last couple of years, making things possible that were never possible before. So as you can see, there’s almost nothing that you can build after becoming really good at JavaScript, which, if you think about it, is really kind of mind-blowing. It’s just amazing because the possibilities are so endless.

 

JavaScript releases, or versions

Okay, and now to finish this blog, I want to briefly talk about JavaScript releases, or versions, as you might call them. We will come back to this topic in the next blog.

You have JavaScript releases at this point. Anyway, to make a long story short, there has been a huge update to the language in 2015, which is officially called es 2015. But most people just call it ES6, simply because it was released after ES5. And by the way, i.e., S stands for ACMA script. Now, after ES6 2015, there is now a yearly new release with a couple of new JavaScript features in all of these new releases, or versions, starting from ES6 2015 is what we call modern JavaScript. But why am I telling you all this? Well, it’s simply because, in this blog, I’m going to teach you modern JavaScript right from the beginning. And I wanted to make that very clear right from the start. However, I’m also convinced that you need to understand what came before ES5 2015. So ES5. And so I will also show you what’s important about ES6. I will help you to understand complete JavaScript Through my blog so now I no longer want to bore you with theory. So instead, let’s finally get started on our next blog.

 

 

 

 

Leave a Reply

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

Get a quote

An duo lorem altera gloriatur. No imperdiet adver sarium pro. No sit sumo lorem. Mei ea eius elitr consequ unturimperdiet.

Get Quote

Archives