ee.String

Constructs a new String.

UsageReturns
ee.String(string)String
ArgumentTypeDetails
stringObject|String

A string or a computed object.

Examples

Code Editor (JavaScript)

print(ee.String('I am a string'));  // I am a string

// Strings can use emoji.
print(ee.String('🧲⚡️👀'));  // 🧲⚡️👀

// Empty string.
var empty = ee.String('');
print(empty);  // ''
print(empty.length());  // 0