I am new to javascript and I have just started learning it. Can anyone tell me why the result is not displayed after I click the submit option.
//My javascript code
var temp = document.querySelector('div');
var p = document.querySelector('p');
document.querySelector('.getSubmit').addEventListner('click', result);
function result(){
p.textContent = 'Hiiiiiii!!!!';