# Introduction
## ReScript Core
[Core](api/core) is ReScript's new standard library. It replaces the complete `Js` module as well as some of the more frequently used modules from `Belt` and is recommended to use with uncurried mode.
In ReScript 11, it is shipped as a separate npm package `@rescript/core` that is added to your project as per the [installation instructions](/docs/manual/latest/installation). In future ReScript versions, it will be included with the `rescript` npm package itself.
## Additional Libraries
ReScript ships with these two additional modules in its standard library:
- [Belt](api/belt): immutable collections and extra helpers not available in JavaScript / [Core](api/core).
- [Dom](api/dom): Dom related types and modules. Contains our standardized types used by various userland DOM bindings.
## Legacy Modules
The [Js](api/js) module is superseded by [Core](api/core).
---
title: "Array & List"
description: "Arrays and List data structures"
canonical: "/docs/manual/v11.0.0/array-and-list"
---
# Array and List
## Array
Arrays are our main ordered data structure. They work the same way as JavaScript arrays: they can be randomly accessed, dynamically resized, updated, etc.
{React.string("Tag: " ++ params.tag /_ params is fully typed! _/)}
{React.string("Item: " ++ params.item)}
JavaScript | ReScript |
---|---|
``` const myFun = (x, y) => { const doubleX = x + x; const doubleY = y + y; return doubleX + doubleY; }; ``` | ``` let myFun = (x, y) => { let doubleX = x + x let doubleY = y + y doubleX + doubleY } ``` |
JavaScript | ReScript |
---|---|
``` let result = (function() { const x = 23; const y = 34; return x + y; })(); ``` | ``` let result = { let x = 23 let y = 34 x + y } ``` |