---
title: "API | ReScript"
metaTitle: "API"
description: "The ReScript API documentation"
canonical: "/docs/manual/api"
---
# Introduction
## Stdlib
[Stdlib](/docs/manual/api/stdlib) is ReScript's new builtin standard library.
It will cover just about you need for day-to-day programming in ReScript and covers most of the built in JavaScript API.
## Additional Libraries
ReScript ships with these two additional modules in its standard library:
- [Belt](/docs/manual/api/belt): immutable collections and extra helpers not available in JavaScript / [Stdlib](/docs/manual/api/stdlib).
- [Dom](/docs/manual/api/stdlibdom): Dom related types and modules. Contains our standardized types used by various userland DOM bindings.
---
title: "Array & List"
description: "Arrays and List data structures"
canonical: "/docs/manual/array-and-list"
section: "Language Features"
order: 12
---
# 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 } ``` |