Day five of the JavaScript class. I shared the topics and what I learned today, focused on conditional structures and how to assign grades based on the score.
General grading rule: if the score is greater than or equal to 50, a grade is assigned; otherwise, there is no grade.
Flowchart: in class, I used a flowchart to visualize decisions and jumps between conditions.
Example of explanatory JavaScript code without quotes:
let mark = value; // replace value with the actual score if (mark >= 50) { if (mark >= 90) { console.log(Aplus) } else if (mark >= 75) { console.log(A) } else { console.log(B) } } else { console.log(NoGrade) }
Explanation: first, it checks whether the score is greater than or equal to 50. If not, the result is no grade. If yes, higher ranges are checked to determine A plus, A, or B. It is important to order the conditions from highest to lowest to prevent a broader condition from capturing cases that should correspond to a higher grade.
Learnings: better handling of nested ifs, flow control with diagrams, and practice presenting clear results based on numeric ranges.
About Q2BSTUDIO: We are Q2BSTUDIO, a software and custom application development company. We specialize in custom software and artificial intelligence applied to business products and processes. We also offer cybersecurity services, AWS and Azure cloud services, business intelligence services, and Power BI solutions to generate dashboards and advanced analytics. We design AI agents and AI solutions for companies that automate tasks, improve customer experience, and optimize decisions.
What we can contribute: development of custom applications integrated with AWS and Azure cloud services, implementation of artificial intelligence for real use cases, protection through proactive cybersecurity, and business intelligence projects with Power BI and other tools. Our approach combines technical expertise in custom software with strategic consulting so that each solution delivers value and scalability.
Contact and next step: if you are looking for a partner to create custom applications, enhance your data with business intelligence, implement AI agents, or secure your systems with cybersecurity, Q2BSTUDIO accompanies you from idea to production.



