scratch-vm/src/engine/variable.js
2017-04-17 15:10:04 -04:00

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