All of JavaScript
Everything that is not a keyword stays JavaScript: Math, JSON, Map, Set, Promise, string and list methods, browser and Node APIs. Any JavaScript library can be used from FratmScript.
The JS panel shows the generated JavaScript: the quickest way to see what a keyword does. Names reserved in JavaScript are renamed (tien for = 1 becomes let $for = 1).
// Tutto JavaScript è disponibile: Math, JSON, Map, Set, metodi delle stringhe...
stamm a dì(Math.max(3, 7, 5))
stamm a dì(JSON.stringify({ pizza: "margherita", prezzo: 6 }))
chist è visti = nu bell Set(["Ciro", "Totò", "Ciro"])
stamm a dì(visti.size)
chist è prezzi = nu bell Map([["margherita", 6]])
stamm a dì(prezzi.get("margherita"))
stamm a dì("napoli".toUpperCase().padStart(8, "*"))
Output
7
{"pizza":"margherita","prezzo":6}
2
6
**NAPOLI