mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-25 23:42:23 -05:00
19 lines
417 B
JavaScript
19 lines
417 B
JavaScript
|
/**
|
||
|
* @fileoverview
|
||
|
* Object representing a Scratch variable.
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* @param {!string} name Name of the variable.
|
||
|
* @param {(string|Number)} value Value of the variable.
|
||
|
* @param {boolean} isCloud Whether the variable is stored in the cloud.
|
||
|
* @constructor
|
||
|
*/
|
||
|
function Variable (name, value, isCloud) {
|
||
|
this.name = name;
|
||
|
this.value = value;
|
||
|
this.isCloud = isCloud;
|
||
|
}
|
||
|
|
||
|
module.exports = Variable;
|