convertToString
Converts this expression to a string.
If this is ...
null
, the result is""
a boolean, the result is
"true"
or"false"
a number, it is converted to a string as specified by the "NumberToString" algorithm of the ECMAScript Language Specification.
a color, it is converted to a string of the form
"rgba(r,g,b,a)"
, wherer
,g
, andb
are numerals ranging from 0 to 255, anda
ranges from 0 to 1.
Otherwise, the input is converted to a string in the format specified by the JSON.stringify function of the ECMAScript Language Specification.