List of all PHP Keywords with the Outputs. Keywords are words that operate some meaning. In the general use of PHP language, these words cannot be used as a constant, a class name, a variable name, a method name, etc. These keywords when used are automatically interpreted by PHP. These PHP keywords, when utilized with […]
Javascript Modules es6
Javascript Modules es6. A module is a script file that performs functionality that becomes loaded into the main script using export and import directives. Module encapsulates the functionality and presents it to other JavaScript files as libraries. The export keyword is used to label variables, functions, etc. that necessary to be accessible outside that module, […]
Javascript Encapsulation | Best Practices
Javascript Encapsulation | Best Practices. JavaScript is a strong object-oriented programming language, which is competent in building complex applications on both the client and the server-side. However, the bigger the complexity in the implementation, the more reliable maintainable, and flexible code is required to undertake the situation. Encapsulation, one of the basics of Object-Oriented Programming […]
Polymorphism in JavaScript
Polymorphism in JavaScript. Polymorphism is a kernel concept of an object-oriented standard that presents a way to do a single step in different forms. It presents the capability to call the same method on different JavaScript objects. As JavaScript has a mechanism to maintain the OOPS standard, Polymorphism is one of the basic rules which is sustained by […]
What is inheritance in javascript
What is inheritance in javascript? This article presents and figures on Inheritance in JavaScript. Inheritance is thought in the object-oriented programming language where a class inherits the property or operation of another class. The inheritance concept helps in reusing the fields and methods of the class that is inherited. This helps in code reusability and […]
How to create constructor in javascript
How to create constructor in javascript. The constructor approach in JavaScript is a proper method used to create and initialize objects inside a class. That is what a constructor in each programming language takes. What does JavaScript constructor different from others is the rest of the syntax? To understand it properly, just open the browser […]
Bitwise Operators in JavaScript
The Bitwise operators in JavaScript work on their operand by acting on them in their binary number (base 2) design form (in special 32-bit numbers form), preferably than in their decimal number (Base 10), octal numbers (Base 8), or hexadecimal number (base 16) system. For example, 1010 is the binary presentation of the decimal number […]
Nested Loop in JavaScript
Nested Loop in JavaScript present inside the different loop. Javascript helps the nested loop in javascript. The loop can hold more than one number of loops set inside another loop, and also can perform n level of nesting inside the loop. The nested loop is also called as inner loop and the loop in which […]
Do While Loop in JavaScript
Do While Loop in JavaScript is used as an exit controlled conditional loop, where the loop is performed at least one time and until when the while condition doesn’t return the true value as a result. The syntax of the do-while loop in javascript is ‘do {body } while (condition), where the code piece between […]
While Loop in JavaScript
While Loop in JavaScript. So, today we’re gathering on a while loop. Looping is nothing but doing tasks frequently again and again. Assume we’ve to write some numbers, for example, 1 to 100. In this situation, if we think we have to write a print statement 100 times per number. The code will be longer […]