1.1 What is JavaScript ?

Hello everyone and welcome to the JavaScript course this course is for beginners. I'm Brahim and I'm very happy to make you discover the functioning of this language. This course will teach you the basics of javascript programming so we will see at first what is JavaScript. What can we do with it? Where does the JavaScript code run? And finally what is the difference between JavaScript and ECMA Script? Let's start with the first question, what is JavaScript? So JavaScript is a development language, more precisely an object-oriented scripting language that allows, among other things, to introduce small animations or even effects on a page. JavaScript is currently one of the most popular and most used programming languages in the world and it is developing faster than any other programming language and big companies like Netflix, Walmart and Paypal are creating entire applications around JavaScript. Second question: What can we do with JavaScript. For a long time JavaScript was only used in browsers to create interactive web pages but those days are over thanks to the huge support of the community and the investments of companies like Facebook and Google. Nowadays, we can finally create complete web and mobile applications as well as networking applications. Real-time applications like Chatbot, video streaming services, command line tools or even games. 3rd question: Where does the JavaScript code run? I was designed to work only in browsers each browser has what is called a JavaScript engine that can execute javascript code. For example for the JavaScript engines for chrome and Firefox is V8 and SpiderMonkey. In 2009 an engineer called Brian Doll took the open source JavaScript engine in Chrome and integrated it into a C++ program that is now called Node. Node is a C++ program that includes the V8 JavaScript engine from Google. Now with this we can finally run JavaScript code outside a browser. We can also create backend applications for our web and mobile web applications. Finally last question what is the difference between JavaScript and ECMA Script. ECMA Script is only a specification while JavaScript is a programming language that confirms this specification. The first version of ECMA was released in 1997 and since 2015 ECMA has been working on annual versions of a new specification that is now called ES2015 ES version 6. Enough theory, let's see it in practice. So for this little demonstration. We open a new browser. Then we make a small right click. Inspect the elements. And we go to the console tool. In the console tool we can write all the JavaScript commands. We make a small console.log We open the brackets. The little ribs. Hello everyone. And don't forget the ; at the end. Here is the little message. This code works very well. We can also write mathematical expressions so 2 + 2 and we get 4. We can also. Write alert messages. Create alert messages. We have well the cuckoo in alert. That's it for this chapter we meet again for the second chapter the development set up .