Tag Archives: javascript-basics

In this article, we will talk about Pass by value and Pass by Reference in JavaScript .   Pass By Value: In Pass by value,… Read More
The Approach of this article is to return the number of vowels in a string using Javascript. A vowel is also a letter that represents… Read More
The ES5 Object method in javascript is used to find more methods to interact with the objects. The ES5 Object method can do: prevents enumeration… Read More
JavaScript is a single-threaded asynchronous programming language. But what does it actually mean? What is this event loop in JavaScript that we all keep talking… Read More
JavaScript is a high level, dynamically typed client side scripting language. JavaScript adds functionality to static HTML pages. Like most other programming languages JavaScript allows… Read More
There are several differences between null and undefined, which are sometimes understood as the same. Definition: Null: It is the intentional absence of the value.… Read More
An array is used to store the elements of multiple data types in JavaScript altogether. Also, there are certain times when you have to manipulate… Read More
If you are working with JavaScript, you would be writing a lot of code with a lot of conditions involved. At first, conditionals may seem… Read More
Call by Value: Suppose there is a variable named “a”. Now, we store a primitive value(boolean, integer, float, etc) in the variable “a”. Let us… Read More
The JavaScript allows static methods that belong to the class rather than an instance of that class. Hence, an instance is not needed to call… Read More
Did you ever imagine that how these graphics and games are run on a web-browser? What is the main technology behind it? Off course it… Read More
This JavaScript exception thrown by JSON.parse() occurs if string passed as a parameter to the method is invalid. Message: SyntaxError: JSON.parse: unterminated string literal SyntaxError:… Read More
This JavaScript exceptions unexpected token occur if a specific language construct was expected, but anything else is typed mistakenly. This could be a simple typing… Read More
This JavaScript exception ‘use strict’ not allowed in function occurs if strict modes ‘use strict’ statement is used at the beginning of a function with… Read More
This JavaScript exception a declaration in the head of a for-of loop can’t have an initializer occurs if the for -of loop contains an initialization… Read More