Javascript code for toggling values to 4 different "Numbers(i)" Objects

Andreas Eriksen's icon

Hi! I'm quite new to this, and i would be unbelievably happy if someone could help me with this
obstacle i am facing at the moment. So i have four different "Numbers" objects that makes up an ADSR
and all of them are currently at zero. What i am trying to do is to create a JS file that when toggled creates different values for each one of them. If someone could help me with the code and how to bind them up to the different objects, i would be extremely happy!

Thanks in advance, and have a good xmas everyone :)

Andreas

Max Gardener's icon

Why use Javascript for that?

Andreas Eriksen's icon

Im required to have a Js file in the task to pass a test.

Floating Point's icon

some js code for you:
{
while (not_too_late)
ask_your_tutor;
}