scratch-vm/src/engine/variable.js

19 lines
424 B
JavaScript
Raw Normal View History

/**
* @fileoverview
* Object representing a Scratch variable.
*/
/**
* @param {!string} name Name of the variable.
2017-02-01 15:59:50 -05:00
* @param {(string|number)} value Value of the variable.
* @param {boolean} isCloud Whether the variable is stored in the cloud.
* @constructor
*/
var Variable = function (name, value, isCloud) {
this.name = name;
this.value = value;
this.isCloud = isCloud;
};
module.exports = Variable;