MV syntax for variables in script calls?

In VX ACE, you would use $game_variables[x] = x in a script call to alter the value of a variable. I tried using this in MV, but unfortunately it didn't work. Does anybody know the new syntax for this in MV?
$gameVariables.value(id)      // to get one.


$gameVarables.setValue(id) // to set one.
Deleted - post in the wrong topic.
I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.



Closing because solved

Original thread: https://forums.rpgmakerweb.com/threads/mv-syntax-for-variables-in-script-calls.48422/