Your question is Frontend Security Practices. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
How do you defend a frontend against common web attacks such as XSS, and what security considerations do you apply while coding on the frontend? Asked in the Round 1: Security and React stage. Web security discussion. Reported follow-ups: How would you design components to minimize vulnerabilities and ensure data privacy?