Relative Content

Tag Archive for javascriptreactjstypescriptif-statementconditional-statements

Using JavaScript how can call two functions at the same time? I need these functions to be called if an Id is inside a variable

I am trying to call two functions “company1Qualified()” & “company2Qualified()” if the corresponding id is in bookable companies variable. My issue is that I can not call both functions at the same time with my condition. Only one function will get called at the moment. The first id in bookableCompanies will always be called but it fails to call both functions. What is causing this? How can I get this to call both functions when the ids are in bookableCompaines?