An important difference between function declarations and class declarations is that while functions can be called in code that appears before they are defined, classes must be defined before they can be constructed.
class hoisting
Classes defined using a class declaration are hoisted, which means that JavaScript has a reference to the class. However the class is not initialized by default, so any code that uses it before the line in which it is initialized is executed will throw a ReferenceError.
const p = new Rectangle(); // ReferenceError
class Rectangle {}
This occurs because while the class is hoisted its values are not initialized.
Function and class expression hoisting
Function expressions and class expressions are not hoisted.
References
w3schools
As discussed earlier, there are two types of cursors: Implicit cursors and explicit cursors. In this section, we will focus on explicit cursors and their …
Oracle creates a memory area, known as the context area for processing an SQL statements, which contain all the informations needed for procesing the SQL …
The state of an application (or anything else, really) is its condition or quality of being at a given moment in time—its state of being. Whether something is stateful or stateless depends on how long the state of interaction with it is being recorded and how that information needs to be stored.
Stateless
A stateless process or applicaton can be understood in isolation. There is no stored information or references to past transactions. Each transaction is made as if from scratch for the first time. Think of stateless transactions as a vending machine: a single request and a response.
Stateful
Stateful applications and processes, however, are those that can be returned to again and again, like online banking or email. They’re performed with the context of previous transactions and the current transaction may be affected by what happened during previous transactions. For these reasons, stateful apps use the same servers each time they process a request from a user.
References
Redhat blog
Watchbi is a minimal and simple responsive coming soon theme built in Bootstrap v5 with Bootstrap icons...
Its hard to memorize all the important Git commands by heart, so I thought it's better to keep a personal Git cheat sheet for myself. So I don’t want to Google …
A list of mobile and web applications that will help our daily life productive for productivity and creativity...
For testing and learning Oracle Database we can start with Oracle Database Express Edition (XE)...
A digital garden is a personal online space where ideas, notes, and knowledge are shared in an evolving, non-linear way.
For my both blogs I am using markdown for writing the blog posts, so I thought its better to keep a persoanl markdown cheat sheet for myself. So that I don't …