Unique Comp interview question

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