ee.String.cat
Concatenates two strings.
Usage | Returns |
---|
String.cat(string2) | String |
Argument | Type | Details |
---|
this: string1 | String | The first string. |
string2 | String | The second string. |
Examples
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
print(ee.String('cat').cat(' bird').getInfo()) # 'cat bird'
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["`String.cat()` combines two strings together, resulting in a new, single string."],["The first string is represented by `this: string1` while the second string is denoted as `string2` within the function."],["Usage involves calling `.cat()` on the initial string and providing the second string as an argument, as shown in the examples for JavaScript, Python using `geemap` and Colab with `getInfo()`."]]],["The `String.cat()` method combines two strings into a single string. It takes one argument, `string2`, which is the string to be appended to the first string (`string1`). The method returns the concatenated string. In JavaScript and Python examples, concatenating 'cat' and ' bird' results in the string 'cat bird'.\n"]]