ee.String.cat

  • The String.cat(string2) method concatenates two strings.

  • The method returns a new String.

  • The first string is 'this' and the second string is 'string2'.

Concatenates two strings.

UsageReturns
String.cat(string2)String
ArgumentTypeDetails
this: string1StringThe first string.
string2StringThe second string.

Examples

Code Editor (JavaScript)

print(ee.String('cat').cat(' bird'));  // 'cat bird'

Python setup

See the Python Environment page for information on the Python API and using geemap for interactive development.

import ee
import geemap.core as geemap

Colab (Python)

print(ee.String('cat').cat(' bird').getInfo())  # 'cat bird'