diff --git a/docs/gdevelop5/all-features/variables/structures-and-arrays/index.md b/docs/gdevelop5/all-features/variables/structures-and-arrays/index.md index 160b66bcf0..0202a6b741 100644 --- a/docs/gdevelop5/all-features/variables/structures-and-arrays/index.md +++ b/docs/gdevelop5/all-features/variables/structures-and-arrays/index.md @@ -22,7 +22,7 @@ You can use this data type to organize related variables within a single variabl In programming languages, this data type is often referred to as an _object_, _map_, _hash_, or *dictionary*. -Structures can be created in the Variables Editor, using events or by using an extension like [JSON resource loader](../../extensions/jsonresource-loader/). +Structures can be created in the Variables Editor, using events or by using an extension like [JSON resource loader](../../../extensions/jsonresource-loader/). ![](structure-variable.png) @@ -33,7 +33,7 @@ An Array variable, also sometimes called _list_ in programming languages, is lik Each variable in an Array has an index, which defines their position in the array. The indices begin at 0 and go up to however long the array is. -Arrays can be created in the Variables Editor, using events or by using an extension like [JSON resource loader](../../extensions/jsonresource-loader/). +Arrays can be created in the Variables Editor, using events or by using an extension like [JSON resource loader](../../../extensions/jsonresource-loader/). ![](array-variable.png) diff --git a/docs/gdevelop5/events/js-code/javascript-in-extensions/index.md b/docs/gdevelop5/events/js-code/javascript-in-extensions/index.md index e053b6d2c9..a6d629f139 100644 --- a/docs/gdevelop5/events/js-code/javascript-in-extensions/index.md +++ b/docs/gdevelop5/events/js-code/javascript-in-extensions/index.md @@ -7,7 +7,7 @@ title: Use JavaScript in extensions After [creating a new extension](/gdevelop5/extensions/create/), you need to define an action with a [JS event](/gdevelop5/events/js-code/) to declare the library code. -In order to get the library code, you can copy the content of a bundled library for instance a UMD one. You can usually find bundled libraries in the **node_modules** folder of a JS project after the installation of the library with a packet manager. +In order to get the library code, you can copy the content of a bundled library for instance a UMD one. You can usually find bundled libraries in the **node_modules** folder of a JS project after the installation of the library with a package manager. Bundled libraries have some extra code at the beginning and the end of the file to bundle the library. This code is not needed. Instead, the classes are added to the `gdjs` namespace like in the following code: