1const language = {
2 set current(name) {
3 this.log.push(name);
4 },
5 log: []
6};
7
8language.current = 'EN';
9language.current = 'FA';
10
11console.log(language.log);
12// expected output: Array ["EN", "FA"]
1
2
3
4
5 let chars = new Set(['a', 'a', 'b', 'c', 'c']);Code language: JavaScript (javascript)