DEV Community

Discussion on: dev.to codes! Collaborative coding experiment: The most liked comment picks the next line of code, day 5

Collapse
 
manthanbhatt profile image
Manthan Bhatt
let profit = 0; //Millons of dollars
function init_take_over_twitter (new_owner) {
   if (new_owner == 'Elon Musk') {
      init_emp_audit();
  }
}

function fire_emp(type) {
   return 'bye bye ' + type;
}

function init_emp_audit () {
     fire_emp('CEO');
     profit += 10000;
     while (profit < 44000) {
         fire_emp('Software Engineers');
         profit += 1000;
      }
     // let that sink in
}
Enter fullscreen mode Exit fullscreen mode