" id="date">
  <br>
  <label>Dollar:</label><input type="text" id="dollar">
  <br>
  <label>Card:</label><input type="text" id="card">
  
<script type="text/javascript">

  // Assuming you have an input element in your HTML with the class .myInput
  const masks = {
    phone: {
      inputElement: document.querySelector('#phone'),
      mask: ['(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
    },
    date: {
      inputElement: document.querySelector('#date'),
      mask: