Putting calcuting result into another array
I've an array in object which has 5 elements. With help of for loop I want to select this elements which has less than 50 and multiply them by 0.2. At the end I want to push these results to my empty tipArray but it doesn't work.
Can you format your code correctly? It's hard to read. You have to run the function tipValue
at least once.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.