Monthly Archives: January 2022

INTRODUCTION TO JAVASCRIPT LANGUAGE

INTRODUCTION TO JAVASCRIPT Javascript is a scripting language, single thread, conforming to the ECMAScript specification that can operate both client-side and server-side and is compiled and interpreted. A scripting language is a language that needs to be executed within a pre-existing entity in order to operate. In the case of javascript, the entity is the web browser. Single Thread. Imagine a post office with a single operator who has to serve n customers. What the operator can do however fast is to serve one person at a time. People in the queue must wait for the [...]

By |2024-11-11T18:15:18+00:00January 7, 2022|0 Comments

OUTPUT IN JAVASCRIPT

JAVASCRIPT OUTPUT We introduce the "Output in Javascript" argument by saying that JavaScript can "display" data in several ways: Write in an HTML element, using innerHTML Write to the HTML output using document.write () Write to an alert window, using window.alert () By writing to the browser console, using console.log () INNERHTML To access an HTML element, JavaScript can use the document.getElementById(id) method. The id attribute defines the HTML element. The innerHTML property defines the HTML content. OUTPUT IN JAVASCRIPT THE METHOD DOCUMENT.WRITE For testing purposes, it is convenient to use document.write(). Using document.write () after [...]

By |2024-11-11T18:16:32+00:00January 9, 2022|0 Comments

JAVASCRIPT SYNTAX

JAVASCRIPT STATEMENT In this post we will discuss variables declared can var or let while also taking a look at the nomenclature commonly used by programmers for variable naming. Let us introduce the topic regarding the "Javascript syntax" by talking first about statements (instructions). let a, b, c; // Statement 1 a = 5; // Statement 2 b = 6; // Statement 3 c = a + b; // Statement 4 The statement (instruction) let a, b, c declares three variables. A program is a list of "statements" that are to be "executed" by a computer. In HTML, JavaScript [...]

By |2024-11-11T18:17:15+00:00January 12, 2022|0 Comments

VALUES AND VARIABLES IN JAVASCRIPT

VALUES AND VARIABLES IN JAVASCRIPT In this introductory part, some concepts are repeated. It is useful to fix well what are the basic elements of language. Values are fundamental units of any program. To understand what a value is, let's take a culinary example. To make a dish we need various ingredients that properly combined together provide us with the desired dish. Similarly in javascript we need a whole set of information units which are the values, without the values it is as if we want to prepare that delicious dish but without having the ingredients available. VARIABLES The [...]

By |2024-11-11T18:17:53+00:00January 15, 2022|0 Comments

JAVASCRIPT OPERATORS

JAVASCRIPT OPERATORS Before we begin, let us understand the terminology. An operand - is what the operator applies to. For example, in multiplication 5 * 2 there are two operands: the left operand is the number 5, and the right operand is the number 2. Sometimes operands are also called "arguments." An operator is unary if it has a single operand. For example, negation-reverses the sign of a number: let x = 1; x = -x;alert( x ); // -1, unary negation is applied An operator is binary if it has two operands. The same "minus" operator exists in [...]

By |2024-11-11T18:18:49+00:00January 30, 2022|0 Comments

MEDIA QUERIES

CSS MEDIA QUERIES Multimedia queries in CSS3 have extended the idea of CSS2 media types. Instead of looking for a device type, they look at the capacity of the device. Multimedia queries can be used to verify many things, for example: window width and height width and height of the device orientation (is the tablet / phone in landscape or portrait mode?) resolution Using media queries is a popular technique for providing a custom style sheet to desktops, laptops, tablets, and mobile phones (such as iPhones and Android phones). SYNTAX A media query consists of a [...]

By |2024-11-11T18:10:38+00:00January 1, 2022|0 Comments

THE FONTS IN THE CASCADE STYLE SHEETS

CSS FONTS Before introducing the topic "THE FONTS IN THE CASCADE STYLE SHEETS" let's say that choosing the right font has a huge impact on how readers experience a website. The right font can create a strong identity for your brand. It is important to use an easy-to-read font. The font adds value to the text. It is also important to choose the correct color and size of the text for the font. GENERIC FONT FAMILIES There are five generic font families in CSS FONTS: Serif fonts have a small stroke at the edges of each letter. They create [...]

By |2024-11-11T18:11:17+00:00January 5, 2022|0 Comments
Go to Top