what's wrong with this ajax() function?

what's wrong with this ajax() function?

What's wrong with this ajax function?:

<script
  integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
  crossorigin="anonymous">
  
$.ajax({
})
.done(function{ alert('balance retrieved'); })
.fail(function{ alert('error!!!'); }); 

</script>

I haven't used the jquery ajax() function for years.  The code above isn't returning an error to the console and it isn't displaying one of the alerts either so I'm not sure where the failure is occurring.