Article
JavaScript supports a variety of data types such as strings, numbers, floats, etc. A string is a collection of characters such as "John Doe". Typically, you create them by enclosing characters in double or single quotes. Alternatively, you can make a string by using the new String() constructor:...
Joel Olawanle
An array is used to store an ordered collection of values. These values could be a combination of either the same data type or numerous data types - integers, floats, strings, boolean, objects, and lots more. Getting the number of elements in an array with JavaScript is a common operation...
When consuming APIs or retrieving data from an array, you may encounter data that repeats itself, but you only want to select the unique values. For example, assume you have an array representing a restaurant menu, as shown below. You might need to retrieve available categories from that array -...
More often than not we find ourselves counting the number of days from or to a particular date. Luckily, doing just that in Java is not very hard, and there are also quite a few ways to do it. So, in this article, we'll be taking a look at how...
Branko Ilic
A website's carousel or slider is an effective way to display multiple images or content in a single space. It encourages visitors to concentrate on important website content while also improving overall visual appeal by saving screen space. In this article, we will learn how to create a draggable carousel...
A component is the probably most important concept to understand in React. It is one of the core building blocks of React that allows us to split a UI into independent, reusable pieces, making the task of building UIs much easier. All of these independent components are then combined into...
Objects are used to store a set of properties, each of which can be thought of as a link between a name (or key) and a value (a collection of key-value pairs). In this guide, we will learn how to get the length of a JavaScript object. Checking the length...
Events usually represent some type of interaction between the user and the app - any time a user clicks on the object, types in the input field, drag or drop some element, and so on. Therefore, each event usually requires some type of reaction from the app. Each time a...
Deployment is the process of moving our code from a source control system to a hosting platform where it gets stored, and can be served as an application to end users. Typically, this is done either in the cloud or on a local server. Prior to the advent of cloud...
© 2013-2025 Stack Abuse. All rights reserved.