Contact Information

KodeBlog

We're Available 24/ 7. Drop us an email.

JavaScript Tutorial

JavaScript is a general purpose scripting language that runs both in the web browser and on the backend using technologies such as NodeJS. On the web, we can use JavaScript to create interactive applications that do not need to reload the entire page plus other cool things. On the backend, we can use it to access the database, create APIs, chatting apps etc.

Topics to be covered

We will cover the following topics in this lesson

Lesson Prerequisites

For you to successfully complete this lesson, you should have the following requirements

  • NodeJS - we will be executing JavaScript files directly using NodeJS from the command line. Alternatively you can execute the files in the web browser but that takes a a little more time and involves working with multiple programs.
  • Web Browser - a web browser can be used as an alternative to executing JavaScript files that we will be working with.
  • Visual Studio Code - we will be using it as the code editor. It comes with a built-in terminal that will allow us to easily execute JavaScript code from within the text editor. You can also use any code editor that you prefer.

JavaScript Popularity

According to StackOverflow Insights, JavaScript is the most popular technology on the platform

JavaScript most popular technology

JavaScript Average Annual Salary

According to Indeed, Checkout the receipt below

JavaScript Average Annual Salary

The money is good too. For example, in the United States, the average annual salary for JavaScript developers is $114,267. That is $9,522 on average per month.

Jobs Available for JavaScript Developers

You basically have three (3) major categories as follows

  • Front-end Developer - as the name suggests, you will work on the front-end. That is to say the user interface.
  • Back-end Developer - you will be doing cool backend staff like writing APIs, Business Logics, Data access and storage etc.
  • Full-stack Developer - the best of both worlds, you will be doing what the front and back-end developers do.

Companies that use JavaScript

Some of the big tech companies that use and employ JavaScript Developers include

  • Google
  • Facebook
  • Netflix
  • Amazon
  • Apple
  • ...and many more.

What applications can you develop with JavaScript?

Gone are the days when JavaScript was considered a toy language that you use to make web pages interactive. It is now a mature language with the support of big tech companies like Google, Facebook, etc. JavaScript can be used to develop the following types of applications

  • Web Applications - well this one is obvious but we still have to mention it. Most web applications use JavaScript to make them interactive. We have online applications for running source code, graphics designing, playing videos etc that heavily depend on JavaScript to work smoothly
  • Mobile Applications - frameworks such as PhoneGap, Sencha Touch etc. making use of JavaScript as one of the components that allow developers to create cross-platform mobile applications.
  • Real-time network applications - features of JavaScript enable us to create real-time applications in a networking environment that allow users to communicate with one another. For example, you can use web sockets to create two way communication apps that deliver messages instantly and much of it depends on JavaScript.
  • Utility Tools - you can use JavaScript to create utilities like Command-line tools. A good example of a command line tool that is written using JavaScript is NPM. NPM is a command line tool for NodeJS that is used to manage packages.
  • Games - everybody loves games. You can use JavaScript to create games that run in the web browser or on Desktops supported by NodeJS.
  • Desktop Applications - Visual Studio Code is a popular text editor that is created using NodeJS. As you already know, Node allows us to run JavaScript on the backend and create cool apps.

How JavaScript code is executed

JavaScript is either executed in a web browser or on a backend container like Node

Web Browsers

Web browsers come with JavaScript Engines that interpret and execute JavaScript code. Chrome uses v8 Engine while browsers like Firefox use SpiderMonkey as the JavaScript engine.

NodeJS

Node is a C++ program that uses the chrome open source v8 engine as the interpreter to execute JavaScript code outside the web browser.

What is the difference between JavaScript and ECMAScript?

JavaScript

It is a programming language that follows the specifications defined in the ECMAScript

ECMAScript

Defines the specifications that govern how JavaScript as a language should be implemented. ECMAScript's major goal is to standardize the various implementations of JavaScript.

In summary, ECMACScript is like the system specifications while JavaScript is the product that is developed from the system specifications. ECMAScript is also know as ES.

You can read more about ECMAScript on the official website.

What you will learn in this course for beginners

Now that we have looked at the popularity of JavaScript, the good cash that you can be earning, and the cool apps that you can create, let's look at the cool concepts of JavaScript that we will be covering in this course for beginners.

  • Setting Up the JavaScript Development Environment
  • JavaScript in Browsers
  • JavaScript Separation of Concerns
  • JavaScript JavaScript in Node
  • JavaScript Variables
  • JavaScript Constants
  • JavaScript Primitive Types
  • JavaScript Dynamic Typing
  • JavaScript Objects
  • JavaScript Arrays
  • JavaScript Functions
  • JavaScript Types of Functions
  • JavaScript JSON

Summary

JavaScript is a general purpose scripting language that can be executed inside web browsers and on the backend using containers like NodeJS. It is one of the most popular technologies based on StackOverflow surveys, the average salary is around $114,267 in the US and it can be used to create web, mobile, real-time and gaming applications.

Author: Rodrick Kazembe

Rodrick is a developer who works on Desktop, Web and Mobile Applications. He is familiar with Python, Java, JavaScript, C++, C#, Kotlin, PHP, Python and the list goes on. Rodrick enjoys sharing knowledge especially when it comes to technology.

Leave A Reply