format (variable substitution in string)
Format returns a formatted string
using the specified format string and arguments.
format(formatString, ...args)
#
ParametersformatString
: Astring
having%s
format specifiers.args
: Arguments referenced by the format specifiers in the format string.
#
Returns- A formatted string
#
Examplesprint(format('This car was made in %s. Now it values %s', 1990, '$20000'))