Unique Comp Interview Question

How would you add validations to a form using Js or Salesforce in a LWC