new Date()
Thu Apr 06 2023 13:43:30 GMT+0200 (Central European Summer Time)
new Date(0).toUTCString()
"Thu, 01 Jan 1970 00:00:00 GMT"
new Date().getTime()
1680781410400
+(new Date(987654321000))
987654321000
new RegExp('[a-z]+', 'g')
/[a-z]+/g
var re = /[a-z]+/g;
re.exec('foo bar')
["foo"]
re.exec('foo bar')
["bar"]
re.exec('xyz')
null
'foo bar baz'.match(re)
["foo", "bar", "baz"]
The console allows you to interact with the course material and examples. Use the following keys:
A special logging function is also available: