Any way to do a Game_Variables.getValue in JS?

I have been looking at the MV JavaScript references here https://kinoar.github.io/rmmv-doc-web/ and via the command reference shown below, and I don't see a way to use Javascript to GET the value stored in an MV variable.

Has anyone done this or does anyone know how to get the value of say MV Variable 0031 via JavaScript?

Answered my own question -- $gameVariables.value(id) // to get one.

LOL... i misunderstood the document.

$gameVariables.value(id) is the answer
I did exactly the same thing when I first started looking. Hmm, there's a '.setValue', so where's the '.getValue'?

Hours later... oh, it's just '.value'. 🙂
Well thank you for having the same issue I'm having. I feel like an idiot now but glad to have the answer.

😀

Original thread: https://forums.rpgmakerweb.com/threads/any-way-to-do-a-game_variables-getvalue-in-js.85779/