NodeJS/Javascript Help to implement a function which result depending of different criteria
€30-250 EUR
Cancelled
Posted over 3 years ago
€30-250 EUR
Paid on delivery
Hello,
This project is for someone which can help via TeamViwer/AnyDesk and on a budget of 50E in case to discuss if there are solid reasons to change.
The issue I have is about this
[login to view URL]
I have to build a function which takes 2 params and on that return based on criteria:
My trying
[login to view URL]
Criteria:
// 1. is default, same country, active
// 2. is default, same country, inactive
// 3. is default, any country, active
// 4. is default, any country, inactive
// 5. sites(active).length === 1
// 6. undefined
The result of this function is a siteId based on those criteria.
Number 5 means if default is false every where but we have one active site and we choose that one
Number 6 is just a return in case no one of the criteria is fulfill means an empty result {}
Sites is an array of OBJ
[login to view URL]
In this OBJ example is missing status which can be ACTIVE or INACTIVE I forgot to result it when I copy/paste.
What I need a solution to those criteria based on that array of OBJ and locale data.
Thanks
Hi there, I have 4+ years of experience developing web applications and APIs with various tools and technologies.
I can write a function which returns the expected result.
Drop me a message to get started.
Thanks
Hello !
When reviewing the job description, I felt I was a great fit for this role.
I have extensive knowledge of front-end JavaScript and browser APIs as well as significant experience with popular frameworks and libraries like JavaScript,React.js
My deep full-stack experience includes Node.js and Express, MongoDB as well as more traditional technologies like PHP/Laravel, and MySQL.
I’m ready to discuss your project and start immediately.
I 'm looking forward to helping you grow your business by sharing my experiences.
Thank you. Pavel.
Hello,
I have read your job details and criteria and understand the requirements necessary for this project. I have solid experience of the stack of technologies required for this project.
I have bit questions according to the project. Contact me via chat.
Thanks.
Hi Jakub,
I am experienced in node js too and you are already familiar with my problem solving abilities.
I can definitely help you in your budget. Let's begin!
hi mate, I am professional freelancer, I have worked with "heavenya" as the backend developer, I have worked with API's endpoint(node js +express+ mongo db) and socket's event(socket io) as well. I have seen the code and analysed the requirements, I think I can provide you the best solution for your work on time. you can contact me on private chat for more details.
Hello,
My understanding is you want to check values progressively to get final value based on the condition on previous values.
I can help you achieve this. Please ping for further details.
Thanks.
Hi I checked your description, I guess you just want to implement a if-else clause to return different result. Although I'm not clear what siteId you gonna return base on different condition. But what you can do is using switch/if-else/ternary operator to implement it. I can help you on that, we can set up a call, once I understand what the logic it is, I can implement it and try to explain to you the reason if you want. Thanks.
Hi
I am a Mean and Mern stack developer, and worked on several e-commerce projects. I have hands experience with building Restful Api, making logic controllers.
I have read your requirement and found my skill set fit to the same.
Thanks