Arrays

JavaScript Destructuring, Spread and Rest Operators Explained with Examples

Submitted by jaypabs on

If you have read modern JavaScript code, in React components, Node.js APIs or even in the browser console, you have probably seen lines like const { name, email } = user; or [...items, newItem]. Those three dots and curly braces are destructuring, the spread operator and rest parameters. They were added in ES6 (ECMAScript 2015) and ES2018, and today they appear in almost every JavaScript project.

Multi-Dimensional Arrays

Submitted by GeePee on
Introduction: Welcome to the Java tutorial on Multi-Dimensional Arrays. I would highly recommend you have a look at my Arrays page before reading through this one! What is a Multi-Dimensional Array? A Multi-Dimensional Array is an array which contains more than one index at any given placement. For example; instead of just having a value at the index "3", we could have "3""0", "3""1" etc. When are Multi-Dimensional Arrays Used? Compared to arrays there are not used as often.

Arrays

Submitted by GeePee on
Introduction: Welcome, this page will teach you about Arrays within Java. What is an Array? An array is a variable which holds more than one value, in effect, it's a list of values attached to a variable name. When are Arrays Used? Arrays are very useful for holding lists of values for certain scripts. For example; holding the id of each button that has been activated within a game.

ArrayLists

Submitted by GeePee on
Introduction: Welcome! This tutorial will teach you about how to create and use ArrayLists. What are ArrayLists? ArrayLists, normally referred to as just Arrays, is a type which can contain multiple items. For example; a shopping list could be referred to as an array or shopping items. ArrayLists must be made up of one type only. You are unable to mix and match different types within one ArrayList such as String and Integer.