JavaScript Function Without Parameter and Without Return

In the previous post, we discussed about the JavaScript function and its components. The functions have different structures such as parameters or no parameters and some function return values and some do not in JavaScript.The simplest of function is the one without an parameters and without return. The function compute its statements and then directly … Read more

JavaScript Functions Overview

The functions are building blocks of the JavaScript programming. A function in JavaScript is a block of statements that may or may not take inputs and return a value. Therefore, it appears that JavaScript functions are no different from functions in other programming languages. There are many difference between functions in other languages and JavaScript … Read more

JavaScript Logical Operator

Logical operator is one that compare two boolean operands and gives a boolean output. They are of high importance in computer science, especially in digital design and computer architectures. They operands of logical operator could be constants, variables of all types and expressions involving comparison operators. First, we must understand the working of these logical … Read more

JavaScript Ternary Operator

JavaScript language supports a C style ternary operator, also called a conditional operator. Any variable can be assigned value based on boolean value of an expression. SyntaxThe new variable will get its value based on certain conditions, suppose the condition is true, then the value 1 will be assigned, otherwise value 2 will be assigned. … Read more

JavaScript Comparison Operator

The JavaScript comparison operator takes two operands and then compare it. The result of the comparison is a boolean value. The operands could be a number a string a boolean value or an object Usage and SyntaxYou can use comparison operator anywhere within the script, however, these are more popular in conditional blocks such as … Read more

JavaScript Unary Operators

In JavaScript and many other programming languages such as Java, C++, etc, a unary operator is that which takes only one operand and perform certain operation on it.Syntax Unary Operators in JavaScriptThere are many unary operators in JavaScript programming . Here is a list with description. Operators Name Description + unary plus attempt to convert … Read more

JavaScript Arithmetic Operators

The arthemetic operators are those that use two or more operands in the form of constants or variables and return single value as results. The value of arithmetic expressions are stored in a variable or used in other expressions. There are 6 arithmetic operators in JavaScript language. These are: Addition Subtraction Multiplication Division Remainder Exponential … Read more

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version