The string
type includes any character as its value, wrapped using a single 'words'
or double "other words"
quotes. The number 3.14
below is technically a string because it is wrapped in quotes.
"hello world 🥰"
'3.14'
`strings wrapped
using back ticks support
multiple lines`
A later lesson will discuss types categorized as Objects
(collections like arrays
, objects
, Date
, etc.).
[4,1,2]
{key: "value"}
new Date()