Sign in
Log inSign up

Please help correct this JS code

Salami Adewale's photo
Salami Adewale
·Dec 8, 2018

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.

html.PNG

Here is my html...

html.PNG

Here is the JS code...

js.PNG

I have tried all i could to make this work but it wont.