scratch-vm/src/engine/variable.js
2016-10-23 22:20:29 -04:00

16 lines
407 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
*/
module.exports = function Variable (name, value, isCloud) {
this.name = name;
this.value = value;
this.isCloud = isCloud;
};