Skip to content
ExamplesOpen editor ↗

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.

NameTypeDescription
selotlolomokwaloString key; do not use the reserved p5TypeID suffix.
bolengseloValue to store.
Stores a value in the browser.
tiro setaLoeto() {
  tlosaKanefase();
  diri e = bopaKonopo("Boloka");
  dirisaMoGo(e, pebaEKonyilwe, () => bolokaSelo("bopa-reference:palo", 3));
}

bopaTemana, dirisaMoGo