How to call fuction everytime with new value? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to call fuction everytime with new value?

I want to call a fuction everytime with new input values but it runs with first time assigned value

17th Apr 2020, 3:49 PM
Akash s
Akash s - avatar
3 Answers
+ 3
Could you pls give your code.
17th Apr 2020, 4:03 PM
MR. PROGRAMMER
MR. PROGRAMMER - avatar
+ 1
It would easier to help with that.
17th Apr 2020, 4:04 PM
MR. PROGRAMMER
MR. PROGRAMMER - avatar
+ 1
For example the call can looks as follows: let aValue = 0; while(true) {aValue = anyValueFunction(); yourFunction(aValue);}
17th Apr 2020, 4:33 PM
JaScript
JaScript - avatar