Please help correct this JS code
Hello All,
I am new to programming and i started learning JS 2 weeks ago. I am trying to put my little knowledge into use but i got stuck.
I want to create a simple for in that when i type a name in the input field and click on submit, it outputs a string welcome plus the name that was inputted. I have tried to make my code work but no luck.
Someone kindly correct my code. Thank you.
Here is my html...
Here is the JS code...
I have tried all i could to make this work but it wont.