JavaScript Data Types

JavaScript Data types have an important concept in JavaScript. It contains various data types such as numbers, objects, strings, and more. Java Script executes expressions from left to right different sequences will give different results. JavaScript Types are dynamics means that we can use the same variable to execute the different data types: JavaScript Data … Read more

JavaScript Operators

JavaScript Operators are special symbols used to perform operations on operands (values and variables). JavaScript operators include operators as in other languages. For example, 1 * 2, where * sign is an operator and 1 is left operand and 2 is a right operand. + operator adds two numeric values and produces a result which … Read more

JavaScript Statements

In programming, instructions executed by a computer are called statements. There is a list of JavaScript statements. JavaScript programs are executed by a web browser in HTML. JavaScript statements are the individual instructions that make up a JavaScript program. These statements are executed line by line, from top to bottom, and perform a specific action. … Read more

JavaScript Variables

JavaScript variables include variables that hold the data value and can be changed anytime. If we didn’t have JavaScript variables available, we’d have to implement a giant code block that checked what the entered name was, and then display the appropriate message for any name. This is obviously really inefficient (the code is a lot bigger, … Read more

JavaScript Where To

The JavaScript where to explain which tags are required to put JavaScript code. There are many methods for JavaScript where to code. These JavaScript where to methods are described below: The <script> Tag Using the <script> and </script> tags in HTML, JavaScript code is inserted. Output: The <head> tag When we used JavaScript function in our code, … Read more

JavaScript Comments

JavaScript comments are used to deliver messages. It is used to add information about the code, warnings, or suggestions so that end-user can easily interpret the code. Comments are annotations in the source code of a program that are ignored by the interpreter, and therefore have no effect on the actual output of the code. Comments … Read more

JavaScript Let

The let keyword is used for variables declaration in JavaScript with block scope. The variables defined with JavaScript let word cannot be redeclared. We accidentally cannot do this. The syntax for the let keyword is given below: JavaScript Let – Global Scope The variables that we declared in the main body or outside the function … Read more

JavaScript Arrays

JavaScript Arrays are list-like objects whose prototype has methods to perform traversal and mutation operations. Neither the length of the JavaScript arrays nor the types of its elements are fixed. Since an array’s length can change at any time, and data can be stored at non-contiguous locations in the array, JavaScript arrays are not guaranteed … Read more

JavaScript Assignment

The JavaScript assignment operators are used to assign the right-side operand values to variables. The = sign is used for assigning a value to a variable. For example, we can perform the increment using the JavaScript assignment operator in the following way: JavaScript Assignment – Operators Following are some assignment operators used in JavaScript: Operator … Read more

JavaScript String

JavaScript String is a series of zero or more characters, represented by using single or double-quotes. There are two ways to create a string: Escape Sequence As strings are written in double or single quotes so if there is a need to show your strings in double/single quotes as output use backslash \’ \” with … Read more