Here is the code I wish to update the value of "score" after a function.
function OnStart() {
lay = app.CreateLayout("linear", "VCenter,FillXY")
text = app.CreateText(score)
lay.addChild(text)
app.AddLayout(lay)
}
let score = 0;
function increment(x) {
x++;
}
increment(score)