acquire

Saving User Input in JS Objects

0:00
↔️ ↕️

Sharing buttons:

so today's video is talking about a

fairly common task when you have a

webpage that has user input person you

want them to fill in a label and a

number and you want to take that

information you want to put it inside of

a JavaScript object maybe you're gonna

take that object and send it off to the

server maybe you're gonna put it into

local storage

maybe you just need to have it in an

object that you can pass it someplace

else to be displayed in any case you

need to take what the user types and put

that inside of a JavaScript object so

let's look at how we do this here's my

code for the page we've got a form

element inside of which I've got two

inputs one that's text one that's number

one called title one called yr for a

year and then I've got a button when the