Technology: JavaScript

What are global variables? How are these variable declared and what are the problems associated with using them?

 - 
Global variables are those that are available throughout the length of the code, that is, these have no scope. The var keyword is used to declare a local variable or object. If the var keyword is omitted, a global variable is declared. Example: // Declare
Read More…

What are undeclared and undefined variables?

 - 
Undeclared variables are those that do not exist in a program and are not declared. If the program tries to read the value of an undeclared variable, then a runtime error is encountered. Undefined variables are those that are declared in the program but have
Read More…

OOPS Constructor

 - 
But creating objects of this kind is not that useful because here also, you will have to create different objects for different students. Here comes object constructor into picture. Object constructor helps you create an object type which can be reused to meet the need
Read More…

Object-oriented programming

 - 
Object-oriented programming (OOP) is a programming paradigm that uses abstraction to create models based on the real world. OOP uses several techniques from previously established paradigms, including modularity, polymorphism, and encapsulation. Today, many popular programming languages (such as Java, JavaScript, C#, C++, Python, PHP, Ruby
Read More…

JavaScript Data Types

 - 
Following are the JavaScript Data types: Number String Boolean Function Object Undefined Boolean A boolean represents only one of two values: true, or false. Think of a boolean as an on/off or a yes/no switch. var boo1 = true; var boo2 = false; Number There is only one
Read More…