Introduction
I'm going to answer for frequently asked questions about JavaScript what is JavaScript what can you do with it where does JavaScript code run and what is the difference between JavaScript and echo script so let's start with the first question what is JavaScript JavaScript is one of the most popular and widely used programming languages in the world right now it's growing faster than any other
programming languages and big companies
like Netflix Walmart and PayPal build internal applications around JavaScript and here's the average salary of a JavaScript developer in the United States and it's only $2,000 a year so it's a great opportunity to get a good job out of learning JavaScript you can work as a front-end developer or a back-end developer for a full stack developer who knows both the front endand the back end now the second question
what can you do with JavaScript for a long time JavaScript was only used in browsers to build interactive web pages some developers refer to JavaScript as a toy language but those days are gone because of huge community support. and investments by large companies
Facebook and Google these days you can
build full-blown web or mobile apps as well as real time networking applications like chats and video streaming services command-line tools or even games here's an example a third question.. where does JavaScript code run JavaScript was originally designed to run only in browsers so every browser has what we call a JavaScript engine that can execute JavaScript code for example the JavaScript engines in Firefox and chrome are SpiderMonkey and v8 in 2009 a very clever engineer called Ryan Dahl took the open-source JavaScript engine in chrome and embedded it inside a C++ program he called that program node the node is a C++ program
that includes Google's v8 JavaScript
engine now with this we can run JavaScript code out of a browser so we can pass our JavaScript code to node for execution and this means with JavaScript we can build the backend for our web and mobile applications so in a nutshell JavaScript code can be run inside of a browser or in node browsers and node provide a runtime environment for our JavaScriptcode and finally the last question what
is the difference between JavaScript and Eggman script well ECMO script is just a specification JavaScript is a programming language that confirms to this specification so we have this organization called a comma which is responsible for defining standards they take care of this Eggman scriptspecification the first version of
Eggman script was released in 1997 then starting from 2015 ACMA has been working on annual releases of a newest specification so in 2015 they released a kimono script 2015 which is also called ECMO script version 6 or es6 for short this specification defined many new features for JavaScript alrightenough theory
let's see JavaScript in action so every browser has a JavaScript engine and we can easily write JavaScript code here without any additional tools of course this is not how we build real-world applications but this is just for a quick demo so open up Chrome right click on an empty area and go to inspect now this opens up chrome developer tools here select the console tab this is ourJavaScript console and we can write any
valid JavaScript code here so type this console dot log put a single code here and then hello world another single code to terminate close the parentheses and add a semicolon at the end now as you go through the course you're going to understand exactly what all this meansfor now don't worry about it so now I'll
press ENTER and you can see the hello world message on the console we can also write mathematical expressions here for example two plus two we get four or we can do something like this alert practices single coat yo enter and here's an alert in the next lecture. I'm going to talk about setting up your development environment for writing JavaScript code well hello it's Nadir thank you for reading my JavaScript tutorial I just wanted to quickly let you know that this tutorial is part of my complete JavaScript course where you can learn about all the essential concepts
Superb
ReplyDeleteinformative content
ReplyDelete