Category Archives: Javascript

JavaScript Objects

Objects are the most important features of JavaScript, and most of JavaScript is all about objects and their usages. In this JavaScript tutorial, we will learn the basics of JS objects and how can we use them. What are objects in JavaScript? Objects are the variables or built-in data structures in JavaScript that are used to hold multiple… Read More »

JavaScript Let Keyword

In the previous tutorial we learned about the JavaScript var keyword and how can we declare a variable using it. Before the introduction of ECMAScript 2015, JavaScript only supports var keyword for variable declaration but now it also supports two more new keywords let and const to declare a variable. In this tutorial, we will learn about the… Read More »

JavaScript Hoisting

Hoisting is a unique feature of JavaScript, unique because no other interpreted programming language support hoisting. So what is Hoisting in JavaScript? If I informally defining Hoisting, it is a mechanism of JavaScript that puts all the variable and function declaration at the top of the script or code. Which allows us to access the variable or function… Read More »

JavaScript Events

What is an Event in JavaScript JavaScript is designed to interact with the HTML pages, and events are one of the main features that allow JavaScript to interact with HTML documents. An event is a signal or thing which tells that something happens to the HTML page or its elements. For example, when a page is loaded it’s… Read More »

JavaScript Function Expression and Literals

In the JavaScript Function tutorial, we learned how to define or declare a function using the function keyword. In this tutorial, we will learn about function literals, Expression, and Anonymous functions in JavaScript. A function literal is a method of defining an unnamed or anonymous function. By far, we define a function expression using the function keyword followed by… Read More »

JavaScript Function Parameters and Arguments

In the last JavaScript function tutorial, we learned about how we can define a function and parameters along with it. And in this tutorial, we will dive deep into the concept of JavaScript functions and arguments. Function Parameters and Arguments There is a subtle difference between the function parameters and arguments. Function parameters are the variable names that… Read More »

JavaScript Nested Functions and Closures

In the last JavaScript tutorial, we learned about JavaScript function Scope and how the global and local Scope and variables work in JavaScript. If you do not know what are global and local scopes please check that tutorial first, because in this tutorial we will be frequently referencing both terms. JavaScript Nested Functions In JavaScript, we can define… Read More »