Category Archives: Javascript

JavaScript Strings

String data type in JavaScript is used to store a sequence of text values. We generally use the JavaScript string to represent textual data. A string value can have zero or more than zero characters, and to wrap up the string characters we can use single quotes, double quotes or backticks. Example <script> var name1 = “Rohan Singh”;… Read More »

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 »