How to declare a function in Javascript using constructor method?

In class-based object-oriented programming, a constructor is a special type of subroutine called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables. Since JavasScript is also an object-oriented programming launguage, there is also constructor methods in JS to create an object. […]

Read More
 
 

Single Page Application vs Multi Page Application (SPA vs MPA)

In the era of cloud , every application has been / being migrated from desktop to web server. And companies  earlier having their older softwares on systems are creating the same  as web app for easy and global approach of clients. Now the webapp could be categorized into two types – One is traditional Multi Page […]

Read More
 
 

Javascript Hoisting

Javascript Hoisting : Javascript a weekply typed language, and if we are not using the ‘strict’ mode in JS, there are so many code practices which can be avoided with Javascript unlike any other languages. One of these practise is that we can use a variable before declaring it.Yes, you heard it right; In JavaScript, […]

Read More
 
 

display:Inline vs display:block

Normally HTML elements are rendered as box elements according to HTML specification. But the element could be shown in different manner. If not specified all the HTML elements inherit the default display property according to their behaviors. These default and basic properties are:- 1.inline 2.block 3.none display:none, property implies that element and its children elements […]

Read More