Skip to content

Some more classes

Course: Promises and async, await - chapter 4

const now = new Date(); // Current date and time
console.log(now.toISOString()); // Outputs the date in ISO format
const map = new Map();
map.set('name', 'Alice');
map.set('age', 30);
console.log(map.get('name'));