// Map
{
const options = new Map();
options.set('param1', 'value1');
options.set('param2', 'value2');
options.set('param3', 'value3');
for (const [key, value] of options)
{
console.log(key + ' => ' + value);
}
}
console.log();
console.log();
console.log();
// object
{
const options = {
param1: 'value1',
param2: 'value2',
param3: 'value3'
};
for (const key in options)
{
console.log(key + ' => ' + options[key]);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: