add EventListener basic Javascript

add EventListener

< span id=”elem”>Hello!
< script > elem.addEventListener(‘click’,function(){
alert(‘hello’);
}); </ script >