Answers for "javascript class setter"

0

javascript class setter

const language = {
  set current(name) {
    this.log.push(name);
  },
  log: []
}

language.current = 'EN';
language.current = 'FA';

console.log(language.log);
Posted by: Guest on March-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language