bolokaSelo
→ storeItem()Stores a value in the browser.
bolokaSelo(selotlolo, boleng)Storage belongs to the shared preview.bopa.dev origin, not an individual sketch or account. Prefix keys with a sketch name. Other sketches can read or change them; do not store credentials. Browser partitioning, privacy settings and quota can limit persistence. Stores strings, numbers, booleans, objects/arrays, colour and vector with companion p5TypeID metadata. JSON serialization rules apply; undefined is not a supported value. Returns undefined.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
selotlolo | mokwalo | String key; do not use the reserved p5TypeID suffix. |
boleng | selo | Value to store. |
Examples
Section titled “Examples”tiro setaLoeto() {
tlosaKanefase();
diri e = bopaKonopo("Boloka");
dirisaMoGo(e, pebaEKonyilwe, () => bolokaSelo("bopa-reference:palo", 3));
}