Can you store a skills cost and scope in a variable?

The title explains it all.

I am looking for something like

$gameVariables.setValue(X, $dataSkills[Y].cost);
$gameVariables.setValue(Z, $dataSkills[Y].scope);
An easy way to read the Object is to open the console (F12).
You type the variable to return the value, being an Object you can open it just by clicking with the mouse on the console, so you can read all the data that it stores.
@Dev_With_Coffee

Hey that's a great piece of information.
I already found what I'm looking for with this.
I'll see if I can make it work like that.

Thank you very much.
Any time!

Original thread: https://forums.rpgmakerweb.com/threads/can-you-store-a-skills-cost-and-scope-in-a-variable.136445/