I'm currently designing a website and I am in the process of creating Javascript objects that will then be sent to the servers via fetch() API. So currently in my code I'm using input groups to let the user input some parameters. For efficiency reasons, I decided that every input that the user inputs will be a parameter of my Javascript object, but I was wondering if it is possible to create some sort of "globally accessible" (or something along those lines) object that will let me essentially put each input into a certain object parameter.
<div class="col-xs-2">
<div class="input-group mb-3">
<input type="text" class="form-control"
placeholder="Feed Flow" aria-label="Feed Flow"
aria-describedby="basic-addon2">
<div class="input-group-append">
<span class="input-group-text" id="basic-
addon3">m<sup>3</sup>/d</span>
</div>
</div>
</div>
So that's the code. This would be asking the user to input a number for the feed flow of the water in a desalination process. I want to scan whatever is in the input box and pass it to a parameter of an Object called ReverseOsmosis. So what in another language would look like: ReverseOsmosis.feed_flow=input (assuming input is what the user inputs)