.concat(val)

# .concat(val)

Description

Concat is a method that concatenates a string with a value This is basically equivalent to ++ and to .append()

Parameters

Concat takes the value to concatenate as a parameter.

Usage On Strings

str = "hello"
// setup the string

log str.concat(" world")
// returns "hello world"
// the string was concatenated with " world"

Last updated

Was this helpful?