Please help me write this JS code ASAP.
Write a JS function called TryCatchFin that takes one parameter called input. If the input is empty, then the function throws "isEmpty". If the input is not a number, then the function throws "Not a number". Log any errors produced while executing the two conditions of the try block, and finally log "ending try catch". You must utilize try, catch, and finally in your code block inside the function.