For this Question: You have to complete <code>printName</code> function 
<ol>
  <li>Takes 2 arguments which are  EventEmitter object , event name </li>
<li>Using the <code>EventEmitter</code> object you need to register  an eventListener for <code>personEvent</code>  event  which takes a callback function. </li>
<li>The callback function itself takes an argument (which would be emitted by test runner) which is of type string. Using that argument print to console.
`My name is ${argument}`.
</li>


</ol>Function will take two arguments

1) 1st argument will be an object of EventEmitter class
2) 2nd argument will be the event name (string)
Function returns a registered Event using an object of EventEmitter class (which then is used to print the name)<pre>
<code>
const emitter=EventEmitter object 
const personEvent="event"


function printName(emitter,personEvent)//registers event with event Name "event" 
emitter.emit("event","Dev")//emits the event and give the output "My name is  Dev"
</code>
</pre>

, I have written this Solution Code: function printName(emitter,personEvent) {

    emitter.on(personEvent,(arg)=>{
        console.log('My name is ',arg);
    });
    
    
  }
, In this Programming Language: JavaScript, Now tell me if this Code is compilable or not?