Skip to main content

Strings

Defining Strings

You can define string by using quotation: "

For example,

"cat"

will be a string, while

cat

is an object

Combining strings with a number

Whenever you add string to a number (or vice versa), the end result will be string. The numbers are implicitly converted into strings.