JavaScript Lessons

One of the most popular programming languages today is javascript, which is used in applications and web pages to add interactivity. It was originally created to make websites and web applications live, i.e. responding quickly to user actions in real time. Now it is used in servers, applications and mobile devices.

Basic information

Pop-ups, animations, buttons, clicking on which the script is executed, input fields, sending data to the server – everything is done with the help of javascript. The code is called a script. There are two ways to execute any program: compilation and interpretation. The first converts the source code to machine code through special programs and the second runs it as written by the developer. All modern browsers have the JS interpreter built in.

Introduction

This tutorial is intended for absolute beginners in programming and for experienced computer users. Programming is the writing of a set of commands that are needed to perform an action. A java script interacts with HTML to complement it. It therefore requires minimal knowledge of the hypertext markup language (free HTML lessons from scratch). In practice, it will be shown how to create a file with the extension .html, which is used to connect to it files with scripts. It reads the information and displays the appropriate actions.

Programming basics

The video shows how to write the first lines of code, how javascript works and how to connect it to a web page. At the output you’ll get the first dynamic elements on the page: you’ll monitor the changes in the slider and execute the functionality. You’ll need a special program – the editor. Visual Studio Code is used, but you can work in any program.

First steps

The video shows the setup Brackets, which is suitable for all platforms and has a lot of plugins. Designed for easy and fast work (installing tabs with extensions, quick writing code, saving the file when switching to a browser). To start, a folder is added, which will contain all the working files (.html, .js). Also shown is building the structure of the site and connecting the script to it using a tag.