JavaScript Tutorial

JavaScript Assignment Operators

In this chapter, we will learn about JavaScript assignment operators. These operators are used to assign values to variables. We will cover: Assignment (=) Addition Assignment (+=) Subtraction Assignment (-=) Multiplication Assignment (*=) Division Assignment (/=) Modulus Assignment (%=) Exponentiation Assignment (**=) Left Shift Assignment (<<=) Right Shift Assignment (>>=) Unsigned Right Shift Assignment (>>>=) …

JavaScript Assignment Operators Read More »

JavaScript Arithmetic Operators

In this chapter, we will learn about JavaScript arithmetic operators. These operators are used to perform arithmetic calculations on numbers. We will cover: Addition (+) Subtraction (-) Multiplication (*) Division (/) Modulus (%) Increment (++) Decrement (–) Addition (+) The addition operator adds two numbers together. Syntax let result = number1 + number2; Example let …

JavaScript Arithmetic Operators Read More »

JavaScript Operators

In this chapter, we will learn about JavaScript operators. We will cover: Arithmetic Operators Assignment Operators Comparison Operators Logical Operators Bitwise Operators String Operators Conditional (Ternary) Operator Type Operators Arithmetic Operators Arithmetic operators are used to perform arithmetic calculations. Examples Addition (+) let sum = 10 + 5; console.log(sum); // Output: 15 Subtraction (-) let …

JavaScript Operators Read More »

JavaScript Type Conversion

In this chapter, we will learn about JavaScript type conversion. We will cover: What is Type Conversion? Implicit Type Conversion Explicit Type Conversion What is Type Conversion? Type conversion is the process of converting a value from one data type to another. In JavaScript, this can happen automatically (implicit conversion) or manually (explicit conversion). Implicit …

JavaScript Type Conversion Read More »

JavaScript Syntax

In this chapter, we will cover the basic syntax of JavaScript. This includes whitespace, statements, literals, variables, operators, expressions, keywords, comments, case sensitivity, and camel case. Understanding these concepts is essential for writing and reading JavaScript code. Whitespace Whitespace refers to characters that provide the space between other characters. JavaScript has the following whitespace characters: …

JavaScript Syntax Read More »

JavaScript Statements

In this chapter, we will learn about JavaScript statements. A statement in JavaScript is an instruction that the browser executes. Understanding JavaScript statements is fundamental to writing and reading JavaScript code. We will cover: JavaScript Programs JavaScript Statements Semicolons JavaScript White Space JavaScript Line Length and Line Breaks JavaScript Code Blocks JavaScript Keywords JavaScript Programs …

JavaScript Statements Read More »

JavaScript console log() Method

In this chapter, we will learn about the console.log() method in JavaScript. This method is one of the most commonly used tools for debugging and displaying information in the browser’s console. We will cover: What is console.log()? Basic Usage Formatting Output Logging Multiple Values Logging Objects and Arrays Console Methods Simple Programs using console.log() What …

JavaScript console log() Method Read More »

Scroll to Top