Learning to program is an exciting journey into the world of code. The syntax of the language is just a starting point, without which it is impossible to move on. This free online JavaScript course will help you master the key concepts of the language, build a solid foundation, and write your first JS programs.
JavaScript is one of the most popular programming languages in the world, used to create interactive web pages, mobile applications, and server-side development. We will start learning JS from scratch, from the very basics. The first module serves as a starting point for writing meaningful code. We will cover the basics of writing JS code, including the concept of comments and their importance. Using an example of testing your solutions, we will also cover what testing is and how to analyze test results.
Modern programs serve a variety of purposes: business, everyday life, and entertainment. However, at their core are always calculations. One of the most basic and simple topics in programming is arithmetic. In this module, we will translate arithmetic operations into a programming language and discuss the priority of operations. We will also look at the concept of a linter and explain why it may issue warnings or errors.
The term “text” in programming is referred to as “strings,” and this concept can be more complex than it seems. How do you output a phrase that contains both single and double quotes? How do you properly handle text when the computer does not understand the symbols? This module covers various aspects of working with text, including the use of quotes, escaping characters, and encoding.
JavaScript is a dynamically typed language with immutable primitive data types. What happens if we try to multiply a number by a string? How does JavaScript know what type the data in front of it is? And what does JavaScript do when it encounters a type mismatch? These questions are covered in this module.
Information can be stored in special “storages” – variables. This allows you to reuse existing data and avoid duplicating it in different parts of the code. In this module, we will look at how to change variables and give them clear names so that the code is understandable for any developer. You will understand that choosing the right variable name can be a difficult task! We will also tell you how to use variables to simplify complex calculations.
To perform any arbitrary operation in programming, the concept of “function” is used. Functions are the building blocks from which programmers create systems. In this module, we will learn how to use already created functions. We will look at the function signature in the documentation and figure out how to use it. We will get acquainted with standard libraries, where thousands of functions are stored. It is impossible to learn all the functions, but every programmer should know where to look for documentation on them.
In programs, we manipulate data that may have important properties. In JavaScript, properties are built into the language. In addition to properties, data can have methods, which are functions that reside inside properties. Properties and methods are treated as expressions, like variables, constants, or function calls, and can be combined in many ways. These topics are covered in more detail in special courses devoted to JavaScript’s object-oriented features. In this module, we’ll cover the basics.
Logical expressions allow you to answer questions that arise during program execution. For example: Has the user been authenticated? Has the subscription been paid for? Is this year a leap year? In this module, we study predicate functions that ask a question and give an answer to it – true or false. We also practice writing such functions and move on to more complex logical expressions.
The predicate function has the task of getting an answer to a question, but often this is not enough, and a certain action must be performed depending on the answer. In PHP, there are if and switch constructions, with which the programmer can select the necessary program behavior depending on various conditions: skip some instructions and execute others. In this module, we will consider these constructions in practice.
Any code can be repeated many times, from tens to millions. This, together with other tools such as variables and conditions, opens up many possibilities for creating programs and complex systems. Let’s look at a simple example. Suppose you need to find a certain phrase in a textbook consisting of 500 pages. You remember the phrase itself, but you don’t know the page number. The simplest (albeit time-consuming) way is to sequentially look through the pages until you find the right one. To perform such repetitive actions, loops are needed.
Phone: +375 33 910-08-92
Email: info@codefor.tech
Address: Baranovichi, st. Pirogova, 7
© 2024-2025 All rights reserved. CodeFor.
Site language: